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:
Magnus Olsen 2005-08-10 18:10:45 +00:00
parent 16b5d11ec3
commit 22e4c47f94

View file

@ -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;