xfreerdp: improve error tolerance in xf_GetWorkArea

This commit is contained in:
Marc-André Moreau 2011-09-26 23:06:45 -04:00
parent 9b9e952501
commit a573898810
2 changed files with 11 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;