Don't pass a NULL to strcmpAW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	dlls/ntdll/relay.c: SNOOP_ShowDebugmsgSnoop()
	Protect strcmpAW from NULL as string pointer
-- 
Uwe Bonnes                bon@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;


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux