explorer: Load graphics driver before calling CreateDesktopW.

This commit is contained in:
Rémi Bernon 2023-05-29 16:18:17 +02:00 committed by Alexandre Julliard
parent 8b5bdb10d5
commit f9c1b6af12

View file

@ -1083,6 +1083,10 @@ void manage_desktop( WCHAR *arg )
if (name)
enable_shell = get_default_enable_shell( name );
UuidCreate( &guid );
TRACE( "display guid %s\n", debugstr_guid(&guid) );
graphics_driver = load_graphics_driver( driver, &guid );
if (name && width && height)
{
if (!(desktop = CreateDesktopW( name, NULL, NULL, 0, DESKTOP_ALL_ACCESS, NULL )))
@ -1093,10 +1097,6 @@ void manage_desktop( WCHAR *arg )
SetThreadDesktop( desktop );
}
UuidCreate( &guid );
TRACE( "display guid %s\n", debugstr_guid(&guid) );
graphics_driver = load_graphics_driver( driver, &guid );
/* create the desktop window */
hwnd = CreateWindowExW( 0, DESKTOP_CLASS_ATOM, NULL,
WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0, 0, 0, 0, 0, 0, 0, &guid );