Skip to content
Snippets Groups Projects
Commit f1a624d5 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard
Browse files

Fix the strange case in WIN_FixCoordinates where x and cx are not

default but cy is CW_USEDEFAULT.
parent b88b08c2
No related branches found
No related tags found
No related merge requests found
......@@ -848,6 +848,19 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
}
}
}
else
{
/* neither x nor cx are default. Check the y values .
* In the trace we see Outlook and Outlook Express using
* cy set to CW_USEDEFAULT when opening the address book.
*/
if (cs->cy == CW_USEDEFAULT || cs->cy == CW_USEDEFAULT16) {
RECT r;
FIXME("Strange use of CW_USEDEFAULT in nHeight\n");
SystemParametersInfoA( SPI_GETWORKAREA, 0, &r, 0);
cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
}
}
}
/***********************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment