[PATCH 7/7] wininet: Fix the releasing of the wrong reference count in HTTP_CloseHTTPRequestHandle - lpwhr obvious already has a reference count of 0 because it is being destroyed.

Robert Shearman rob at codeweavers.com
Thu Jan 4 12:22:19 CST 2007


---
  dlls/wininet/http.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
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-patches mailing list