commdlg: Fix dialog template parser when caption starts with a DBCS character.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55043
This commit is contained in:
Akihiro Sagawa 2023-06-13 23:04:41 +09:00 committed by Alexandre Julliard
parent 9c4d30ad70
commit c43a4aee77

View file

@ -114,7 +114,7 @@ static LPDLGTEMPLATEA convert_dialog( const char *p, DWORD size )
}
else copy_string( &out, &p, end - out );
if (*p & 0x80) /* window */
if ((BYTE)*p == 0xff) /* window */
{
*out++ = 0xffff;
*out++ = get_word( &p );