mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Windows treats dialog control class ids 0-5 same way as 0x80-0x85.
This commit is contained in:
parent
25481334f6
commit
5e10df3e12
1 changed files with 4 additions and 2 deletions
|
@ -276,8 +276,10 @@ static const WORD *DIALOG_GetControl32( const WORD *p, DLG_CONTROL_INFO *info,
|
|||
{ 'C','o','m','b','o','B','o','x', } /* 0x85 */
|
||||
};
|
||||
WORD id = GET_WORD(p+1);
|
||||
if ((id >= 0x80) && (id <= 0x85))
|
||||
info->className = class_names[id - 0x80];
|
||||
/* Windows treats dialog control class ids 0-5 same way as 0x80-0x85 */
|
||||
if ((id >= 0x80) && (id <= 0x85)) id -= 0x80;
|
||||
if (id <= 5)
|
||||
info->className = class_names[id];
|
||||
else
|
||||
{
|
||||
info->className = NULL;
|
||||
|
|
Loading…
Reference in a new issue