Commits

A Kruger committed f679479

Fix syntax error.

Comments (0)

Files changed (1)

Client/psiclient/utilities.cpp

     LONG returnCode = 0;
 
     bool success =
-        (ERROR_SUCCESS == returnCode = RegCreateKeyEx(
+        (ERROR_SUCCESS == (returnCode = RegCreateKeyEx(
                             HKEY_CURRENT_USER,
                             LOCAL_SETTINGS_REGISTRY_KEY,
                             0,
                             KEY_WRITE,
                             0,
                             &key,
-                            &disposition) &&
+                            &disposition)) &&
 
-         ERROR_SUCCESS == returnCode = RegSetValueExA(
+         ERROR_SUCCESS == (returnCode = RegSetValueExA(
                             key,
                             name.c_str(),
                             0,
                             REG_DWORD,
                             (LPBYTE)&value,
-                            bufferLength));
+                            bufferLength)));
     RegCloseKey(key);
 
     if (!success)
     LONG returnCode = 0;
 
     bool success =
-        (ERROR_SUCCESS == returnCode = RegCreateKeyEx(
+        (ERROR_SUCCESS == (returnCode = RegCreateKeyEx(
                             HKEY_CURRENT_USER,
                             LOCAL_SETTINGS_REGISTRY_KEY,
                             0,
                             KEY_WRITE,
                             0,
                             &key,
-                            0) &&
+                            0)) &&
 
-         ERROR_SUCCESS == returnCode = RegSetValueExA(
+         ERROR_SUCCESS == (returnCode = RegSetValueExA(
                             key,
                             name.c_str(),
                             0,
                             REG_SZ,
                             (LPBYTE)value.c_str(),
-                            value.length() + 1)); // Write the null terminator
+                            value.length() + 1))); // Write the null terminator
     RegCloseKey(key);
 
     if (!success)