wininet: lpszUrlPath should be NULL for URLs in file:///... format.

This commit is contained in:
Jacek Caban 2009-12-09 22:08:26 +01:00 committed by Alexandre Julliard
parent f282db2408
commit 5e8e358a71
1 changed files with 1 additions and 1 deletions

View File

@ -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,