mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +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
|
@ -229,12 +229,20 @@ Main_DirectDraw_GetMonitorFrequency (LPDIRECTDRAW7 iface, LPDWORD lpFreq)
|
||||||
retVal = DDERR_INVALIDPARAMS;
|
retVal = DDERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (This->lpLcl->lpGbl->dwMonitorFrequency)
|
||||||
{
|
{
|
||||||
*lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
|
*lpFreq = This->lpLcl->lpGbl->dwMonitorFrequency;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
retVal = DDERR_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_SEH_HANDLE
|
_SEH_HANDLE
|
||||||
{
|
{
|
||||||
|
retVal = DD_FALSE;
|
||||||
}
|
}
|
||||||
_SEH_END;
|
_SEH_END;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue