Commit f9c1b6af authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

explorer: Load graphics driver before calling CreateDesktopW.

parent 8b5bdb10
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment