PathIsURL(A|W): Check for NULL strings.
This commit is contained in:
parent
664b9bbb67
commit
5825025316
|
@ -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)
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue