Henri Verbeet : secur32: Don' t bother zeroing the handle table in SECUR32_initSchannelSP().

Alexandre Julliard julliard at winehq.org
Thu Oct 15 08:54:30 CDT 2009


Module: wine
Branch: master
Commit: 3e96881e4c8fbf532a0112bdfc20dbd45f5ecd8c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3e96881e4c8fbf532a0112bdfc20dbd45f5ecd8c

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct 15 10:36:45 2009 +0200

secur32: Don't bother zeroing the handle table in SECUR32_initSchannelSP().

Handles are initialized when they're allocated.

---

 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");




More information about the wine-cvs mailing list