[PATCH 5/5] secur32: Don't bother zeroing the handle table in SECUR32_initSchannelSP().

Henri Verbeet hverbeet at codeweavers.com
Thu Oct 15 03:36:45 CDT 2009


Handles are initialized when they're allocaated.
---
 dlls/secur32/schannel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index 8b710a3..af94024 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -1386,7 +1386,7 @@ void SECUR32_initSchannelSP(void)
         pgnutls_global_set_log_function(schan_gnutls_log);
     }
 
-    schan_handle_table = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 64 * sizeof(*schan_handle_table));
+    schan_handle_table = HeapAlloc(GetProcessHeap(), 0, 64 * sizeof(*schan_handle_table));
     if (!schan_handle_table)
     {
         ERR("Failed to allocate schannel handle table.\n");
-- 
1.6.4.4




More information about the wine-patches mailing list