diff os2/dw.c @ 1367:a595e368a393

Menu clicked callbacks on OS/2 and Windows should pass the menu ID as the window handle... not the handle to the menu that gets used internaly.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Nov 2011 22:49:56 +0000
parents 417866ad960b
children 896347a9be19
line wrap: on
line diff
--- a/os2/dw.c	Fri Nov 18 20:27:41 2011 +0000
+++ b/os2/dw.c	Fri Nov 18 22:49:56 2011 +0000
@@ -2761,7 +2761,7 @@
 
                   if(menuowner == hWnd || menuowner == NULLHANDLE)
                   {
-                     result = clickfunc(tmp->window, tmp->data);
+                     result = clickfunc((HWND)tmp->id, tmp->data);
                      tmp = NULL;
                   }
                }