mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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;
|
IBindStatusCallbackImpl *This;
|
||||||
|
|
||||||
This = HeapAlloc(GetProcessHeap(), 0, sizeof(IBindStatusCallbackImpl));
|
This = HeapAlloc(GetProcessHeap(), 0, sizeof(IBindStatusCallbackImpl));
|
||||||
|
if (!This)
|
||||||
|
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