From 1daef10918895b4d6258f4e38f07efe706ca5b82 Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Tue, 12 Jan 2010 15:04:44 +0100 Subject: [PATCH] WinCE: fix previous broken commit Still untested --- modules/video_output/msw/events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index f93a9210ec..815cf2890a 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -60,6 +60,9 @@ UINT GetMenuState(HMENU hMenu, UINT id, UINT flags) { MENUITEMINFO info; + memset(&info, 0, sizeof(info)); + info.cbSize = sizeof(info); + info.fMask = MIIM_STATE; if (!GetMenuItemInfo(hMenu, id, (flags & MF_BYPOSITION) != 0, &info)) return -1; /* XXX Submenu handling is missing... */ -- 2.39.2