PathIsURL should return TRUE even if a scheme is unknown.
This commit is contained in:
parent
01a88ff01e
commit
9ed8857ffa
|
@ -2078,7 +2078,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
|
||||||
/* get protocol */
|
/* get protocol */
|
||||||
base.cbSize = sizeof(base);
|
base.cbSize = sizeof(base);
|
||||||
res1 = ParseURLA(lpstrPath, &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 */
|
/* get protocol */
|
||||||
base.cbSize = sizeof(base);
|
base.cbSize = sizeof(base);
|
||||||
res1 = ParseURLW(lpstrPath, &base);
|
res1 = ParseURLW(lpstrPath, &base);
|
||||||
return (base.nScheme > 0);
|
return (base.nScheme != URL_SCHEME_INVALID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue