Calculate the correct size of dialog templates in the propsheet

control.
This commit is contained in:
Mike McCormack 2004-08-26 18:11:43 +00:00 committed by Alexandre Julliard
parent 627423d10b
commit 8b424416bb
1 changed files with 1 additions and 1 deletions

View File

@ -1376,7 +1376,7 @@ static UINT GetTemplateSize(DLGTEMPLATE* pTemplate)
p += lstrlenW( (LPCWSTR)p ) + 1;
break;
}
p += *p + 1; /* Skip extra data */
p += *p / sizeof(WORD) + 1; /* Skip extra data */
--nrofitems;
}