winhttp: Consistently use the allocation macros.

This commit is contained in:
Hans Leidekker 2011-12-01 13:01:51 +01:00 committed by Alexandre Julliard
parent 56886ab7b1
commit 9a2f3cb98a
2 changed files with 3 additions and 3 deletions

View file

@ -532,7 +532,7 @@ BOOL netconn_init( netconn_t *conn, BOOL secure )
pCRYPTO_set_id_callback(ssl_thread_id);
num_ssl_locks = pCRYPTO_num_locks();
ssl_locks = HeapAlloc(GetProcessHeap(), 0, num_ssl_locks * sizeof(CRITICAL_SECTION));
ssl_locks = heap_alloc(num_ssl_locks * sizeof(CRITICAL_SECTION));
if (!ssl_locks)
{
set_last_error( ERROR_OUTOFMEMORY );
@ -577,7 +577,7 @@ void netconn_unload( void )
ssl_locks[i].DebugInfo->Spare[0] = 0;
DeleteCriticalSection( &ssl_locks[i] );
}
HeapFree( GetProcessHeap(), 0, ssl_locks );
heap_free( ssl_locks );
}
DeleteCriticalSection(&init_ssl_cs);
#endif

View file

@ -210,7 +210,7 @@ BOOL WINAPI WinHttpCrackUrl( LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONEN
debugstr_wn( uc->lpszExtraInfo, uc->dwExtraInfoLength ));
exit:
HeapFree( GetProcessHeap(), 0, url_decoded );
heap_free( url_decoded );
return ret;
}