mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Check if memory was goodly allocated and zero it before use
svn path=/trunk/; revision=33540
This commit is contained in:
parent
3195cffc1f
commit
f4de98290f
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ CreateDl(HWND Dlg, BOOL *pbCancelled)
|
|||
IBindStatusCallbackImpl *This;
|
||||
|
||||
This = HeapAlloc(GetProcessHeap(), 0, 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