mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Check if memory was goodly allocated and zero it before use
svn path=/trunk/; revision=33540
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user