mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue