Rob Shearman : wininet: Fix the releasing of the wrong reference count in HTTP_CloseHTTPRequestHandle .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 4 15:09:30 CST 2007


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jan  4 18:22:19 2007 +0000

wininet: Fix the releasing of the wrong reference count in HTTP_CloseHTTPRequestHandle.

lpwhr obviously already has a reference count of 0 because it is being destroyed.

---

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

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index b98a3df..438a284 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -3013,7 +3013,7 @@ static void HTTP_CloseHTTPRequestHandle(
 
     TRACE("\n");
 
-    WININET_Release(&lpwhr->hdr);
+    WININET_Release(&lpwhr->lpHttpSession->hdr);
 
     HTTP_CloseConnection(lpwhr);
 




More information about the wine-cvs mailing list