Check for null string in PathIsURL

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat Dec 15 12:03:55 CST 2001


dlls/shlwapi32/path.c: PathIsURL(A|W)
		       Check for NULL strings
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/shlwapi/path.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/path.c,v
retrieving revision 1.13
diff -u -r1.13 path.c
--- wine/dlls/shlwapi/path.c	11 Dec 2001 00:30:19 -0000	1.13
+++ wine/dlls/shlwapi/path.c	15 Dec 2001 18:01:24 -0000
@@ -1157,7 +1157,7 @@
     UNKNOWN_SHLWAPI_1 base;
     DWORD res1;
 
-    if(!lpstrPath) return FALSE;
+    if((!lpstrPath) | !(*lpstrPath)) return FALSE;
 
     /* get protocol        */
     base.size = 24;
@@ -1173,7 +1173,7 @@
     UNKNOWN_SHLWAPI_2 base;
     DWORD res1;
 
-    if(!lpstrPath) return FALSE;
+    if((!lpstrPath)| !(*lpstrPath)) return FALSE;
 
     /* get protocol        */
     base.size = 24;




More information about the wine-patches mailing list