explorer: Remove support for the old-style X11 desktop configuration key.

This commit is contained in:
Alexandre Julliard 2012-10-22 14:37:00 +02:00
parent 900b5f4b79
commit 78b86e3446
1 changed files with 0 additions and 22 deletions

View File

@ -255,7 +255,6 @@ static void set_desktop_window_title( HWND hwnd, const WCHAR *name )
/* main desktop management function */ /* main desktop management function */
void manage_desktop( WCHAR *arg ) void manage_desktop( WCHAR *arg )
{ {
static const WCHAR defaultW[] = {'D','e','f','a','u','l','t',0};
static const WCHAR messageW[] = {'M','e','s','s','a','g','e',0}; static const WCHAR messageW[] = {'M','e','s','s','a','g','e',0};
MSG msg; MSG msg;
HWND hwnd, msg_hwnd; HWND hwnd, msg_hwnd;
@ -288,27 +287,6 @@ void manage_desktop( WCHAR *arg )
{ {
if (!get_default_desktop_size( name, &width, &height )) width = height = 0; if (!get_default_desktop_size( name, &width, &height )) width = height = 0;
} }
else /* check for the X11 driver key for backwards compatibility (to be removed) */
{
static const WCHAR desktopW[] = {'D','e','s','k','t','o','p',0};
static const WCHAR x11_keyW[] = {'S','o','f','t','w','a','r','e','\\','W','i','n','e','\\',
'X','1','1',' ','D','r','i','v','e','r',0};
HKEY hkey;
WCHAR buffer[64];
DWORD size = sizeof(buffer);
width = height = 0;
/* @@ Wine registry key: HKCU\Software\Wine\X11 Driver */
if (!RegOpenKeyW( HKEY_CURRENT_USER, x11_keyW, &hkey ))
{
if (!RegQueryValueExW( hkey, desktopW, 0, NULL, (LPBYTE)buffer, &size ))
{
name = defaultW;
if (!parse_size( buffer, &width, &height )) width = height = 0;
}
RegCloseKey( hkey );
}
}
if (name && width && height) xwin = create_desktop( name, width, height ); if (name && width && height) xwin = create_desktop( name, width, height );