Commit 1c5777a5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

If we have registry entries, use them. Never mind which version we

autodetected.
parent 9af5e691
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "debugtools.h" #include "debugtools.h"
#include "tweak.h" #include "tweak.h"
#include "winreg.h" #include "winreg.h"
#include "winversion.h"
DEFAULT_DEBUG_CHANNEL(syscolor) DEFAULT_DEBUG_CHANNEL(syscolor)
...@@ -126,12 +125,8 @@ void SYSCOLOR_Init(void) ...@@ -126,12 +125,8 @@ void SYSCOLOR_Init(void)
p = (TWEAK_WineLook == WIN31_LOOK) ? DefSysColors : DefSysColors95; p = (TWEAK_WineLook == WIN31_LOOK) ? DefSysColors : DefSysColors95;
/* first, try to read the values from the registry */ /* first, try to read the values from the registry */
if (VERSION_GetVersion() != WIN31)
{
if (RegCreateKeyExA(HKEY_CURRENT_USER, "Control Panel\\Colors", 0, 0, 0, KEY_ALL_ACCESS, 0, &hKey, 0)) if (RegCreateKeyExA(HKEY_CURRENT_USER, "Control Panel\\Colors", 0, 0, 0, KEY_ALL_ACCESS, 0, &hKey, 0))
bNoReg = TRUE; bNoReg = TRUE;
}
for (i = 0; i < NUM_SYS_COLORS; i++) for (i = 0; i < NUM_SYS_COLORS; i++)
{ bOk = FALSE; { bOk = FALSE;
...@@ -161,7 +156,6 @@ void SYSCOLOR_Init(void) ...@@ -161,7 +156,6 @@ void SYSCOLOR_Init(void)
} }
if (!bNoReg) if (!bNoReg)
RegCloseKey(hKey); RegCloseKey(hKey);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment