Jacek Caban : wininet: lpszUrlPath should be NULL for URLs in file:///... format.
Alexandre Julliard
julliard at winehq.org
Thu Dec 10 10:00:58 CST 2009
Module: wine
Branch: master
Commit: 5e8e358a71746110b654ad0df893f7faa248a396
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e8e358a71746110b654ad0df893f7faa248a396
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Dec 9 22:08:26 2009 +0100
wininet: lpszUrlPath should be NULL for URLs in file:///... format.
---
dlls/wininet/internet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 8a3340c..ac845a8 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -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,
More information about the wine-cvs
mailing list