wininet: lpszUrlPath should be NULL for URLs in file:///... format.
This commit is contained in:
parent
f282db2408
commit
5e8e358a71
|
@ -1550,7 +1550,7 @@ BOOL WINAPI InternetCrackUrlW(LPCWSTR lpszUrl_orig, DWORD dwUrlLength_orig, DWOR
|
|||
}
|
||||
|
||||
/* If the scheme is "file" and the host is just one letter, it's not a host */
|
||||
if(lpUC->nScheme==INTERNET_SCHEME_FILE && (lpszPort-lpszHost)==1)
|
||||
if(lpUC->nScheme==INTERNET_SCHEME_FILE && lpszPort <= lpszHost+1)
|
||||
{
|
||||
lpszcp=lpszHost;
|
||||
SetUrlComponentValueW(&lpUC->lpszHostName, &lpUC->dwHostNameLength,
|
||||
|
|
Loading…
Reference in New Issue