Main_DirectDraw_EnumDisplayModes

Forget Zero out two struct before they are being use

svn path=/trunk/; revision=30717
This commit is contained in:
Magnus Olsen 2007-11-24 12:57:26 +00:00
parent f05d14ae61
commit 19ae483e87

View file

@ -24,6 +24,8 @@ Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags,
DX_WINDBG_trace();
ZeroMemory(&DevMode, sizeof(DEVMODE));
_SEH_TRY
{
@ -45,6 +47,8 @@ Main_DirectDraw_EnumDisplayModes(LPDDRAWI_DIRECTDRAW_INT This, DWORD dwFlags,
{
DDSURFACEDESC2 SurfaceDesc;
ZeroMemory(&SurfaceDesc, sizeof(DDSURFACEDESC2));
iMode++;
SurfaceDesc.dwSize = sizeof (DDSURFACEDESC2);