Author: akhaldi
Date: Fri Aug 19 09:43:46 2016
New Revision: 72354

URL: http://svn.reactos.org/svn/reactos?rev=72354&view=rev
Log:
[WINHTTP] Sync with Wine Staging 1.9.16. CORE-11866

Modified:
    trunk/reactos/dll/win32/winhttp/handle.c
    trunk/reactos/media/doc/README.WINE

Modified: trunk/reactos/dll/win32/winhttp/handle.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winhttp/handle.c?rev=72354&r1=72353&r2=72354&view=diff
==============================================================================
--- trunk/reactos/dll/win32/winhttp/handle.c    [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/winhttp/handle.c    [iso-8859-1] Fri Aug 19 
09:43:46 2016
@@ -77,9 +77,10 @@
 HINTERNET alloc_handle( object_header_t *hdr )
 {
     object_header_t **p;
-    ULONG_PTR handle = 0, num;
+    ULONG_PTR handle, num;
 
     list_init( &hdr->children );
+    hdr->handle = NULL;
 
     EnterCriticalSection( &handle_cs );
     if (!max_handles)
@@ -100,11 +101,12 @@
     if (handles[handle]) ERR("handle isn't free but should be\n");
 
     handles[handle] = addref_object( hdr );
-    while (handles[next_handle] && (next_handle < max_handles)) next_handle++;
+    hdr->handle = (HINTERNET)(handle + 1);
+    while ((next_handle < max_handles) && handles[next_handle]) next_handle++;
 
 end:
     LeaveCriticalSection( &handle_cs );
-    return hdr->handle = (HINTERNET)(handle + 1);
+    return hdr->handle;
 }
 
 BOOL free_handle( HINTERNET hinternet )

Modified: trunk/reactos/media/doc/README.WINE
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=72354&r1=72353&r2=72354&view=diff
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Fri Aug 19 09:43:46 2016
@@ -204,7 +204,7 @@
 reactos/dll/win32/windowscodecsext    # Synced to WineStaging-1.9.11
 reactos/dll/win32/winemp3.acm         # Synced to WineStaging-1.9.11
 reactos/dll/win32/wing32              # Synced to WineStaging-1.9.11
-reactos/dll/win32/winhttp             # Synced to WineStaging-1.9.11
+reactos/dll/win32/winhttp             # Synced to WineStaging-1.9.16
 reactos/dll/win32/wininet             # Synced to WineStaging-1.9.11
 reactos/dll/win32/winmm               # Forked at Wine-20050628
 reactos/dll/win32/winmm/midimap       # Forked at Wine-20050628


Reply via email to