diff --git a/src/platform/StdRegistry.cpp b/src/platform/StdRegistry.cpp index 5060f00e2..60624b524 100644 --- a/src/platform/StdRegistry.cpp +++ b/src/platform/StdRegistry.cpp @@ -75,7 +75,7 @@ bool SetRegistryString(const char *szSubKey, if ((qerr=RegCreateKeyExW(HKEY_CURRENT_USER, GetWideChar(szSubKey), 0, - L"", + NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, @@ -131,7 +131,7 @@ static bool SetRegClassesRoot(const wchar_t *szSubKey, if ((qerr=RegCreateKeyExW(HKEY_CLASSES_ROOT, szSubKey, 0, - L"", + NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, @@ -391,7 +391,7 @@ void StdCompilerConfigWrite::CreateKey(HKEY hParent) // Open/Create registry key if (RegCreateKeyExW(hParent ? hParent : pKey->Parent->Handle, pKey->Name.GetWideChar(), - 0, L"", REG_OPTION_NON_VOLATILE, + 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &pKey->Handle, NULL) != ERROR_SUCCESS) excCorrupt("Could not create key %s!", pKey->Name.getData());