Author: greatlrd
Date: Sat Nov 24 15:57:26 2007
New Revision: 30717
URL:
http://svn.reactos.org/svn/reactos?rev=30717&view=rev
Log:
Main_DirectDraw_EnumDisplayModes
Forget Zero out two struct before they are being use
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_displaymode.c Sat Nov 24 15:57:26 2007
@@ -24,6 +24,8 @@
DX_WINDBG_trace();
+ ZeroMemory(&DevMode, sizeof(DEVMODE));
+
_SEH_TRY
{
@@ -44,6 +46,8 @@
while (EnumDisplaySettingsEx(NULL, iMode, &DevMode, 0) == TRUE)
{
DDSURFACEDESC2 SurfaceDesc;
+
+ ZeroMemory(&SurfaceDesc, sizeof(DDSURFACEDESC2));
iMode++;