1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

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 );