Commit 58250253 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

PathIsURL(A|W): Check for NULL strings.

parent 664b9bbb
...@@ -1157,7 +1157,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath) ...@@ -1157,7 +1157,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
UNKNOWN_SHLWAPI_1 base; UNKNOWN_SHLWAPI_1 base;
DWORD res1; DWORD res1;
if(!lpstrPath) return FALSE; if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */ /* get protocol */
base.size = 24; base.size = 24;
...@@ -1173,7 +1173,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath) ...@@ -1173,7 +1173,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
UNKNOWN_SHLWAPI_2 base; UNKNOWN_SHLWAPI_2 base;
DWORD res1; DWORD res1;
if(!lpstrPath) return FALSE; if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */ /* get protocol */
base.size = 24; base.size = 24;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment