Module: wine Branch: master Commit: 9557f1c52620120689988d52e583f062d5898841 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9557f1c52620120689988d52e5...
Author: Jacek Caban jacek@codeweavers.com Date: Sat Sep 18 22:14:49 2010 +0200
mshtml: Fixed hash part stripping in GetQuery.
Spotted by Joris Huizer.
---
dlls/mshtml/nsio.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 35a35f0..02f2d94 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2124,8 +2124,10 @@ static nsresult NSAPI nsURL_GetQuery(nsIURL *iface, nsACString *aQuery)
ptr_end = url.lpszExtraInfo+url.dwExtraInfoLength; for(ptr = url.lpszExtraInfo; ptr < ptr_end; ptr++) { - if(*ptr == '#') + if(*ptr == '#') { + ptr_end = ptr; break; + } }
ptr = url.lpszExtraInfo;