mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
fixing bug in reactos GetFreq code for dx
svn path=/trunk/; revision=27060
This commit is contained in:
parent
a5b4c11371
commit
23a0686be6
1 changed files with 9 additions and 1 deletions
|
@ -230,11 +230,19 @@ Main_DirectDraw_GetMonitorFrequency (LPDIRECTDRAW7 iface, LPDWORD lpFreq)
|
|||
}
|
||||
else
|
||||
{
|
||||
*lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
|
||||
if (This->lpLcl->lpGbl->dwMonitorFrequency)
|
||||
{
|
||||
*lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
|
||||
}
|
||||
else
|
||||
{
|
||||
retVal = DDERR_UNSUPPORTED;
|
||||
}
|
||||
}
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
retVal = DD_FALSE;
|
||||
}
|
||||
_SEH_END;
|
||||
|
||||
|
|
Loading…
Reference in a new issue