PATCH: Menu entries may contain NULL string

Adam Gundy arg at cyberscience.com
Wed Mar 5 09:49:28 CST 2003


Hi.. the first of several patches I've made in the process of making our software
run under WINE.

Cyberscience disclaims all copyright and responsibility... ;-)

Changelog:

        * controls/menu.c: Adam Gundy <arg at cyberscience.com>
        Allow modifying a menu string to be NULL.

diff -u -r wine-20030219/controls/menu.c wine-20030219-new/controls/menu.c
--- wine-20030219/controls/menu.c       Thu Jan 16 01:17:34 2003
+++ wine-20030219-new/controls/menu.c   Mon Feb 24 17:23:13 2003
@@ -3521,7 +3521,6 @@
     if (IS_STRING_ITEM(flags))
     {
         TRACE("%p %d %04x %04x %s\n", hMenu, pos, flags, id, debugstr_w(str) );
-        if (!str) return FALSE;
     }
     else
     {


Seeya,
 Adam
--
Real Programmers don't comment their code. If it was hard to write,
it should be hard to read, and even harder to modify.
These are all my own opinions.




More information about the wine-patches mailing list