Don't pass a NULL to strcmpAW

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Oct 3 13:20:27 CDT 2003


Changelog:
	dlls/ntdll/relay.c: SNOOP_ShowDebugmsgSnoop()
	Protect strcmpAW from NULL as string pointer
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/ntdll/relay.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/relay.c,v
retrieving revision 1.3
diff -u -r1.3 relay.c
--- wine/dlls/ntdll/relay.c	29 Sep 2003 20:42:25 -0000	1.3
+++ wine/dlls/ntdll/relay.c	3 Oct 2003 18:07:57 -0000
@@ -787,7 +787,7 @@
         itemlen = strlenW(*listitem);
         if((itemlen == len && !strncmpiAW( buf, *listitem, len)) ||
            (itemlen == len2 && !strncmpiAW(buf, *listitem, len2)) ||
-           !strcmpAW(fname, *listitem))
+           (fname && !strcmpAW(fname, *listitem)))
             return !show;
     }
     return show;



More information about the wine-patches mailing list