Jacek Caban : mshtml: Fixed nsIHttpChannel:: GetRequestSucceeded implementation.

Alexandre Julliard julliard at winehq.org
Tue Apr 6 11:20:06 CDT 2010


Module: wine
Branch: master
Commit: 7d80003205a9feaa24849a8fcc8f374e7ffba2ae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7d80003205a9feaa24849a8fcc8f374e7ffba2ae

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Apr  5 20:20:59 2010 +0200

mshtml: Fixed nsIHttpChannel::GetRequestSucceeded implementation.

---

 dlls/mshtml/nsio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 2e514b1..0c8e457 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1067,7 +1067,7 @@ static nsresult NSAPI nsChannel_GetRequestSucceeded(nsIHttpChannel *iface,
     if(!This->response_status)
         return NS_ERROR_NOT_AVAILABLE;
 
-    *aRequestSucceeded = (This->response_status < 400);
+    *aRequestSucceeded = This->response_status/100 == 2;
 
     return NS_OK;
 }




More information about the wine-cvs mailing list