Zero memory using HeapAlloc flag

Spotted by Stefan Ginsberg <stefan__100__@hotmail.com>

svn path=/trunk/; revision=33543
This commit is contained in:
Pierre Schweitzer 2008-05-17 08:19:23 +00:00
parent ab0acbf7ef
commit 7f3429142d

View file

@ -206,11 +206,10 @@ CreateDl(HWND Dlg, BOOL *pbCancelled)
{
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;