Moved a few registry keys from HKLM\Software\Wine to
HKCU\Software\Wine for consistency.
This commit is contained in:
parent
0ddb8d11be
commit
ab88743c25
|
@ -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_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
|
||||
}
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\Direct3D */
|
||||
if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) )
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
|
||||
if ( !RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey) )
|
||||
{
|
||||
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
||||
{
|
||||
|
|
|
@ -222,8 +222,8 @@ static struct graphics_driver *load_display_driver(void)
|
|||
}
|
||||
|
||||
strcpy( buffer, "x11,tty" ); /* default value */
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */
|
||||
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\Drivers */
|
||||
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
|
||||
{
|
||||
DWORD type, count = sizeof(buffer);
|
||||
RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count );
|
||||
|
|
|
@ -318,8 +318,8 @@ static DWORD WINAPI ThreadFunc( LPVOID info )
|
|||
|
||||
/* find the name of the thing to download */
|
||||
szUrl[0] = 0;
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\shdocw */
|
||||
r = RegOpenKeyW( HKEY_LOCAL_MACHINE, szMozDlPath, &hkey );
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\shdocw */
|
||||
r = RegOpenKeyW( HKEY_CURRENT_USER, szMozDlPath, &hkey );
|
||||
if( r == ERROR_SUCCESS )
|
||||
{
|
||||
sz = MAX_PATH;
|
||||
|
|
|
@ -67,8 +67,8 @@ static BOOL load_driver(void)
|
|||
HKEY hkey;
|
||||
|
||||
strcpy( buffer, "x11,tty" ); /* default value */
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\Drivers */
|
||||
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Drivers", &hkey ))
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\Drivers */
|
||||
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
|
||||
{
|
||||
DWORD type, count = sizeof(buffer);
|
||||
RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count );
|
||||
|
|
|
@ -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_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
|
||||
}
|
||||
/* @@ Wine registry key: HKLM\Software\Wine\Direct3D */
|
||||
if ( !RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Direct3D", &hkey) )
|
||||
/* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
|
||||
if ( !RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Direct3D", &hkey) )
|
||||
{
|
||||
if ( !RegQueryValueExA( hkey, "VertexShaderMode", 0, NULL, buffer, &size) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue