Zhiyi Zhang (@zhiyi) commented about programs/explorer/desktop.c:
- SetThreadDescription( GetCurrentThread(), L"wine_explorer_display_settings_restorer" );
- wait_named_mutex( L"__wine_display_settings_restorer_mutex" );
- memset( &class, 0, sizeof(class) );
- class.lpfnWndProc = display_settings_restorer_wndproc;
- class.lpszClassName = display_settings_restorer_classname;
- if (!RegisterClassW( &class ) && GetLastError() != ERROR_CLASS_ALREADY_EXISTS)
- {
ERR( "could not register display settings restorer window class err %lu\n", GetLastError() );
return 0;
- }
- if (!CreateWindowW( display_settings_restorer_classname, NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0, 0, NULL ))
- {
TRACE( "failed to create display settings restorer window err %lu\n", GetLastError() );
This should be a WARN.