mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-12 03:06:34 +08:00
xfreerdp: improve error tolerance in xf_GetWorkArea
This commit is contained in:
parent
9b9e952501
commit
a573898810
@ -43,7 +43,13 @@ boolean xf_detect_monitors(xfInfo* xfi, rdpSettings* settings)
|
||||
|
||||
vscreen = &xfi->vscreen;
|
||||
|
||||
xf_GetWorkArea(xfi);
|
||||
if (xf_GetWorkArea(xfi) != True)
|
||||
{
|
||||
xfi->workArea.x = 0;
|
||||
xfi->workArea.y = 0;
|
||||
xfi->workArea.width = WidthOfScreen(xfi->screen);
|
||||
xfi->workArea.height = HeightOfScreen(xfi->screen);
|
||||
}
|
||||
|
||||
if (settings->workarea)
|
||||
{
|
||||
|
@ -132,7 +132,10 @@ boolean xf_GetWorkArea(xfInfo* xfi)
|
||||
if (status != True)
|
||||
return False;
|
||||
|
||||
xf_GetCurrentDesktop(xfi);
|
||||
status = xf_GetCurrentDesktop(xfi);
|
||||
|
||||
if (status != True)
|
||||
return False;
|
||||
|
||||
plong = (long*) prop;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user