[1/3] winhttp: Consistently use the allocation macros.
Hans Leidekker
hans at codeweavers.com
Thu Dec 1 06:01:51 CST 2011
---
dlls/winhttp/net.c | 4 ++--
dlls/winhttp/url.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 60cb652..c5d3e94 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -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
diff --git a/dlls/winhttp/url.c b/dlls/winhttp/url.c
index 3938801..798b549 100644
--- a/dlls/winhttp/url.c
+++ b/dlls/winhttp/url.c
@@ -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;
}
--
1.7.7.3
More information about the wine-patches
mailing list