From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53646 Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- dlls/user32/win.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 0605f94abe1..534db908ee0 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -379,12 +379,11 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module, if (!unicode && cs->lpszName) { - const char *nameA = (const char *)cs->lpszName; /* resource ID string is a special case */ - if (nameA[0] == '\xff') + if (IS_INTRESOURCE(cs->lpszName)) { name_buf[0] = 0xffff; - name_buf[1] = MAKEWORD( nameA[1], nameA[2] ); + name_buf[1] = LOWORD(cs->lpszName); name_buf[2] = 0; RtlInitUnicodeString( &window_name, name_buf ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1011