user32: Check for valid cbSize in GetMonitorInfoW.
This commit is contained in:
parent
d1f554711f
commit
4ecda80c6c
|
@ -440,7 +440,12 @@ BOOL WINAPI GetMonitorInfoA(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo)
|
|||
*/
|
||||
BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo)
|
||||
{
|
||||
BOOL ret = USER_Driver->pGetMonitorInfo( hMonitor, lpMonitorInfo );
|
||||
BOOL ret;
|
||||
|
||||
if (lpMonitorInfo->cbSize != sizeof(MONITORINFOEXW) && lpMonitorInfo->cbSize != sizeof(MONITORINFO))
|
||||
return FALSE;
|
||||
|
||||
ret = USER_Driver->pGetMonitorInfo( hMonitor, lpMonitorInfo );
|
||||
if (ret)
|
||||
TRACE("flags %04x, monitor %s, work %s\n", lpMonitorInfo->dwFlags,
|
||||
wine_dbgstr_rect(&lpMonitorInfo->rcMonitor),
|
||||
|
|
Loading…
Reference in New Issue