PathIsURL should return TRUE even if a scheme is unknown.

This commit is contained in:
Huw Davies 2004-10-05 02:10:18 +00:00 committed by Alexandre Julliard
parent 01a88ff01e
commit 9ed8857ffa
1 changed files with 2 additions and 2 deletions

View File

@ -2078,7 +2078,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
/* get protocol */
base.cbSize = sizeof(base);
res1 = ParseURLA(lpstrPath, &base);
return (base.nScheme > 0);
return (base.nScheme != URL_SCHEME_INVALID);
}
/*************************************************************************
@ -2096,7 +2096,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
/* get protocol */
base.cbSize = sizeof(base);
res1 = ParseURLW(lpstrPath, &base);
return (base.nScheme > 0);
return (base.nScheme != URL_SCHEME_INVALID);
}
/*************************************************************************