# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1321656596 0 # Node ID a595e368a393bf7fe02e24df8b9bc26b83e1db54 # Parent edad104e77142fe28f6fb13bc3276cd7e0103b51 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. diff -r edad104e7714 -r a595e368a393 os2/dw.c --- 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; } } diff -r edad104e7714 -r a595e368a393 win/dw.c --- a/win/dw.c Fri Nov 18 20:27:41 2011 +0000 +++ b/win/dw.c Fri Nov 18 22:49:56 2011 +0000 @@ -2113,7 +2113,7 @@ /* * Call the user supplied callback */ - result = clickfunc(tmp->window, tmp->data); + result = clickfunc((HWND)tmp->id, tmp->data); tmp = NULL; } } /* this fires for checkable menu items */