diff os2/dw.c @ 1311:5f3ce2b1e82d

Fixed DW_MENU_POPUP failing on OS/2 due to an invalid sanity check. Updated the readme with menu and debug changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 04 Nov 2011 05:55:35 +0000
parents 47dbe605a03f
children c969db49606e
line wrap: on
line diff
--- a/os2/dw.c	Fri Nov 04 05:06:52 2011 +0000
+++ b/os2/dw.c	Fri Nov 04 05:55:35 2011 +0000
@@ -4729,7 +4729,7 @@
    char buffer[30];
    int is_checked, is_disabled;
 
-   if ( !menux || id > 65536 )
+   if ( !menux || !WinIsWindow(dwhab, menux) )
       return NULLHANDLE;
 
    if ( end )