mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
Zero memory using HeapAlloc flag
Spotted by Stefan Ginsberg <stefan__100__@hotmail.com> svn path=/trunk/; revision=33543
This commit is contained in:
parent
ab0acbf7ef
commit
7f3429142d
|
@ -206,11 +206,10 @@ CreateDl(HWND Dlg, BOOL *pbCancelled)
|
||||||
{
|
{
|
||||||
IBindStatusCallbackImpl *This;
|
IBindStatusCallbackImpl *This;
|
||||||
|
|
||||||
This = HeapAlloc(GetProcessHeap(), 0, sizeof(IBindStatusCallbackImpl));
|
This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IBindStatusCallbackImpl));
|
||||||
if (!This)
|
if (!This)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ZeroMemory(This, sizeof(IBindStatusCallbackImpl));
|
|
||||||
This->vtbl = &dlVtbl;
|
This->vtbl = &dlVtbl;
|
||||||
This->ref = 1;
|
This->ref = 1;
|
||||||
This->hDialog = Dlg;
|
This->hDialog = Dlg;
|
||||||
|
|
Loading…
Reference in a new issue