Hans Leidekker : winhttp: Consistently use the allocation macros.
Alexandre Julliard
julliard at winehq.org
Thu Dec 1 14:05:33 CST 2011
Module: wine
Branch: master
Commit: 9a2f3cb98a53ff8550e770e8837f90506cf27502
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a2f3cb98a53ff8550e770e8837f90506cf27502
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Dec 1 13:01:51 2011 +0100
winhttp: Consistently use the allocation macros.
---
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;
}
More information about the wine-cvs
mailing list