Commit fcb8a2f8 authored by Frank Richter's avatar Frank Richter Committed by Alexandre Julliard

Compare result of RegQueryValueExW() with ERROR_SUCCESS.

parent 8fb66354
...@@ -291,8 +291,8 @@ static void UXTHEME_RestoreSystemMetrics(void) ...@@ -291,8 +291,8 @@ static void UXTHEME_RestoreSystemMetrics(void)
char colorStr[13]; char colorStr[13];
DWORD count = sizeof(colorStr); DWORD count = sizeof(colorStr);
if (SUCCEEDED(RegQueryValueExA (colorKey, SysColorsNames[i], 0, if (RegQueryValueExA (colorKey, SysColorsNames[i], 0,
&type, colorStr, &count))) &type, colorStr, &count) == ERROR_SUCCESS)
{ {
int r, g, b; int r, g, b;
if (sscanf (colorStr, "%d %d %d", &r, &g, &b) == 3) if (sscanf (colorStr, "%d %d %d", &r, &g, &b) == 3)
...@@ -315,8 +315,8 @@ static void UXTHEME_RestoreSystemMetrics(void) ...@@ -315,8 +315,8 @@ static void UXTHEME_RestoreSystemMetrics(void)
DWORD count = sizeof(value); DWORD count = sizeof(value);
DWORD type; DWORD type;
if (SUCCEEDED(RegQueryValueExW (hKey, bsp->keyName, 0, if (RegQueryValueExW (hKey, bsp->keyName, 0,
&type, (LPBYTE)&value, &count))) &type, (LPBYTE)&value, &count) == ERROR_SUCCESS)
{ {
SystemParametersInfoW (bsp->spiSet, 0, (LPVOID)value, SystemParametersInfoW (bsp->spiSet, 0, (LPVOID)value,
SPIF_UPDATEINIFILE); SPIF_UPDATEINIFILE);
......
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