[vlc-devel] commit: WinCE: fix previous broken commit (Pierre Ynard )

git version control git at videolan.org
Tue Jan 12 15:05:24 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jan 12 15:04:44 2010 +0100| [1daef10918895b4d6258f4e38f07efe706ca5b82] | committer: Pierre Ynard 

WinCE: fix previous broken commit

Still untested

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1daef10918895b4d6258f4e38f07efe706ca5b82
---

 modules/video_output/msw/events.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index f93a921..815cf28 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... */




More information about the vlc-devel mailing list