Commit 9debc40e authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard

Properly retrieve and release handles.

parent bcc2a5c5
......@@ -182,7 +182,7 @@ LPWININETHANDLEHEADER WININET_GetObject( HINTERNET hinternet )
EnterCriticalSection( &WININET_cs );
if( (handle > 0) && ( handle <= WININET_dwNextHandle ) )
if( (handle > 0) && ( handle <= WININET_dwMaxHandles ) )
info = WININET_Handles[handle-1];
LeaveCriticalSection( &WININET_cs );
......@@ -199,7 +199,7 @@ BOOL WININET_FreeHandle( HINTERNET hinternet )
EnterCriticalSection( &WININET_cs );
if( (handle > 1) && ( handle < WININET_dwNextHandle ) )
if( (handle > 1) && ( handle < WININET_dwMaxHandles ) )
{
handle--;
if( WININET_Handles[handle] )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment