From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53646 --- dlls/user.exe16/message.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/dlls/user.exe16/message.c b/dlls/user.exe16/message.c index 9af217bf5f1..ced2f5ba4d0 100644 --- a/dlls/user.exe16/message.c +++ b/dlls/user.exe16/message.c @@ -2573,10 +2573,21 @@ static LRESULT static_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, */ HWND create_window16( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE instance, BOOL unicode ) { + WCHAR name[3]; + /* map to module handle */ if (instance && !((ULONG_PTR)instance >> 16)) instance = HINSTANCE_32( GetExePtr( HINSTANCE_16(instance) ));
+ if (IS_INTRESOURCE(cs->lpszName)) + { + name[0] = 0xff; + name[1] = LOWORD(cs->lpszName); + name[2] = 0; + + cs->lpszName = name; + } + return wow_handlers32.create_window( cs, className, instance, unicode ); }