Moved a few registry keys from HKLM\Software\Wine to

HKCU\Software\Wine for consistency.
This commit is contained in:
Alexandre Julliard 2005-06-20 16:04:32 +00:00
parent 0ddb8d11be
commit ab88743c25
5 changed files with 10 additions and 10 deletions

View File

@ -82,8 +82,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" ); wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" ); wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
} }
/* @@ Wine registry key: HKLM\Software\Wine\Direct3D */ /* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) ) if ( !RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey) )
{ {
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) ) if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
{ {

View File

@ -222,8 +222,8 @@ static struct graphics_driver *load_display_driver(void)
} }
strcpy( buffer, "x11,tty" ); /* default value */ strcpy( buffer, "x11,tty" ); /* default value */
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */ /* @@ Wine registry key: HKCU\Software\Wine\Drivers */
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey )) if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
{ {
DWORD type, count = sizeof(buffer); DWORD type, count = sizeof(buffer);
RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count ); RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count );

View File

@ -318,8 +318,8 @@ static DWORD WINAPI ThreadFunc( LPVOID info )
/* find the name of the thing to download */ /* find the name of the thing to download */
szUrl[0] = 0; szUrl[0] = 0;
/* @@ Wine registry key: HKLM\Software\Wine\shdocw */ /* @@ Wine registry key: HKCU\Software\Wine\shdocw */
r = RegOpenKeyW( HKEY_LOCAL_MACHINE, szMozDlPath, &hkey ); r = RegOpenKeyW( HKEY_CURRENT_USER, szMozDlPath, &hkey );
if( r == ERROR_SUCCESS ) if( r == ERROR_SUCCESS )
{ {
sz = MAX_PATH; sz = MAX_PATH;

View File

@ -67,8 +67,8 @@ static BOOL load_driver(void)
HKEY hkey; HKEY hkey;
strcpy( buffer, "x11,tty" ); /* default value */ strcpy( buffer, "x11,tty" ); /* default value */
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */ /* @@ Wine registry key: HKCU\Software\Wine\Drivers */
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey )) if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
{ {
DWORD type, count = sizeof(buffer); DWORD type, count = sizeof(buffer);
RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count ); RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count );

View File

@ -64,8 +64,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" ); wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" ); wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
} }
/* @@ Wine registry key: HKLM\Software\Wine\Direct3D */ /* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) ) if ( !RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey) )
{ {
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) ) if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
{ {