[ros-diffs] [pschweitzer] 33543: Zero memory using HeapAlloc flag Spotted by Stefan Ginsberg <stefan__100__ at hotmail.com>

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sat May 17 10:19:23 CEST 2008


Author: pschweitzer
Date: Sat May 17 03:19:23 2008
New Revision: 33543

URL: http://svn.reactos.org/svn/reactos?rev=33543&view=rev
Log:
Zero memory using HeapAlloc flag
Spotted by Stefan Ginsberg <stefan__100__ at hotmail.com>

Modified:
    trunk/rosapps/downloader/download.c

Modified: trunk/rosapps/downloader/download.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/downloader/download.c?rev=33543&r1=33542&r2=33543&view=diff
==============================================================================
--- trunk/rosapps/downloader/download.c [iso-8859-1] (original)
+++ trunk/rosapps/downloader/download.c [iso-8859-1] Sat May 17 03:19:23 2008
@@ -206,11 +206,10 @@
 {
     IBindStatusCallbackImpl *This;
 
-    This = HeapAlloc(GetProcessHeap(), 0, sizeof(IBindStatusCallbackImpl));
+    This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IBindStatusCallbackImpl));
     if (!This)
       return NULL;
 
-    ZeroMemory(This, sizeof(IBindStatusCallbackImpl));
     This->vtbl = &dlVtbl;
     This->ref = 1;
     This->hDialog = Dlg;



More information about the Ros-diffs mailing list