mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 12:23:41 +00:00
Windows 2000 does not always zerofill data if you are using heap_zero fill. to be 100% sure everything are zero fill, we need zerofil the whole object before instate
svn path=/trunk/; revision=17263
This commit is contained in:
parent
16b5d11ec3
commit
22e4c47f94
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ HRESULT WINAPI Create_DirectDraw (LPGUID pGUID, LPDIRECTDRAW* pIface,
|
|||
if (This == NULL)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
ZeroMemory(This,sizeof(IDirectDrawImpl));
|
||||
|
||||
This->lpVtbl = &DirectDraw_VTable;
|
||||
This->ref = 1;
|
||||
*pIface = (LPDIRECTDRAW)This;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue