small fix for GetMenuItemID

Mike McCormack mike_mccormack at start.com.au
Tue Jul 10 05:56:06 CDT 2001


It appears GetMenuItemID should return -1 for invalid menu items.
Opera (the web browser) went into an endless loop on GetMenuItemID,
searching for a menu item with a non-zero return value. This patch
fixed it.

Mike


ChangeLog:
* controls/menu.c
  Return -1 for invalid menu items, not zero



------------------------------------------
mailto:Mike_McCormack at looksmart.com.au
ph +82 16 430 0425

__________________________________________________________________
Get your free Australian email account at http://www.Looksmart.com.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opera_fix.diff
Type: application/octet-stream
Size: 536 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20010710/568a435d/opera_fix.obj


More information about the wine-patches mailing list