Author: greatlrd
Date: Thu Jun 7 23:05:28 2007
New Revision: 27060
URL:
http://svn.reactos.org/svn/reactos?rev=27060&view=rev
Log:
fixing bug in reactos GetFreq code for dx
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 Thu Jun 7 23:05:28 2007
@@ -230,11 +230,19 @@
}
else
{
- *lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
- }
- }
- _SEH_HANDLE
- {
+ if (This->lpLcl->lpGbl->dwMonitorFrequency)
+ {
+ *lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
+ }
+ else
+ {
+ retVal = DDERR_UNSUPPORTED;
+ }
+ }
+ }
+ _SEH_HANDLE
+ {
+ retVal = DD_FALSE;
}
_SEH_END;