mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 14:44:57 +00:00
explorer: Load graphics driver before calling CreateDesktopW.
This commit is contained in:
parent
8b5bdb10d5
commit
f9c1b6af12
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue