Jacek Caban : mshtml: Fixed comparing names in find_http_header.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 5 10:30:27 CDT 2015
Module: wine
Branch: master
Commit: a68d5d2da350aa86cd798e0eeaecd3ffbc5eac6a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a68d5d2da350aa86cd798e0eeaecd3ffbc5eac6a
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Oct 5 15:50:27 2015 +0200
mshtml: Fixed comparing names in find_http_header.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---
dlls/mshtml/nsio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index a661c4d..45ad55f 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -363,7 +363,7 @@ static http_header_t *find_http_header(struct list *headers, const WCHAR *name,
http_header_t *iter;
LIST_FOR_EACH_ENTRY(iter, headers, http_header_t, entry) {
- if(!strcmpiW(iter->header, name))
+ if(!strncmpiW(iter->header, name, len) && !iter->header[len])
return iter;
}
More information about the wine-cvs
mailing list