From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53646 --- dlls/user32/win.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 0605f94abe1..5ad3347ea5b 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -381,7 +381,14 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module, { 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] = PtrToUlong(cs->lpszName); + name_buf[2] = 0; + RtlInitUnicodeString( &window_name, name_buf ); + } + else if (nameA[0] == '\xff') { name_buf[0] = 0xffff; name_buf[1] = MAKEWORD( nameA[1], nameA[2] );