Commit 4b5f876e authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard

DIALOG_ParseTemplate16() supported up to 127 controls. Bigger values

were expanded to WORD incorrectly.
parent e78e1af4
......@@ -440,7 +440,7 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
{
result->style = GET_DWORD(p); p += sizeof(DWORD);
result->exStyle = 0;
result->nbItems = *p++;
result->nbItems = (unsigned char) *p++;
result->x = GET_WORD(p); p += sizeof(WORD);
result->y = GET_WORD(p); p += sizeof(WORD);
result->cx = GET_WORD(p); p += sizeof(WORD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment