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

This commit is contained in:
Uwe Bonnes 2001-12-17 20:51:27 +00:00 committed by Alexandre Julliard
parent 664b9bbb67
commit 5825025316
1 changed files with 2 additions and 2 deletions

View File

@ -1157,7 +1157,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
UNKNOWN_SHLWAPI_1 base;
DWORD res1;
if(!lpstrPath) return FALSE;
if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */
base.size = 24;
@ -1173,7 +1173,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
UNKNOWN_SHLWAPI_2 base;
DWORD res1;
if(!lpstrPath) return FALSE;
if (!lpstrPath || !*lpstrPath) return FALSE;
/* get protocol */
base.size = 24;