user32: Move register_builtin_classes call to GetDesktopWindow.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-11-19 13:47:37 +01:00 committed by Alexandre Julliard
parent 898ce07406
commit 0487c826fb
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,6 @@ static const struct user_driver_funcs *load_driver(void)
__wine_set_user_driver( &driver, WINE_GDI_DRIVER_VERSION );
}
register_builtin_classes();
return USER_Driver;
}

View File

@ -252,6 +252,7 @@ static WND *create_window_handle( HWND parent, HWND owner, LPCWSTR name,
else assert( full_parent == thread_info->top_window );
if (full_parent && !USER_Driver->pCreateDesktopWindow( thread_info->top_window ))
ERR( "failed to create desktop window\n" );
register_builtin_classes();
}
else /* HWND_MESSAGE parent */
{
@ -2282,6 +2283,7 @@ HWND WINAPI GetDesktopWindow(void)
if (!thread_info->top_window || !USER_Driver->pCreateDesktopWindow( thread_info->top_window ))
ERR( "failed to create desktop window\n" );
register_builtin_classes();
return thread_info->top_window;
}