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__(a)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=…
==============================================================================
--- 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;