diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index b72f8309d..a2ee3c6d7 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -885,10 +885,10 @@ generic_string NppParameters::getCloudSettingsPath(CloudChoice cloudChoice) // Get value from registry generic_string settingsPath4OneDrive = TEXT(""); HKEY hKey; - LRESULT res = ::RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\SkyDrive"), 0, KEY_READ, &hKey); + LRESULT res = ::RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SkyDrive"), 0, KEY_READ, &hKey); if (res != ERROR_SUCCESS) { - res = ::RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SkyDrive"), 0, KEY_READ, &hKey); + res = ::RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\SkyDrive"), 0, KEY_READ, &hKey); } if (res == ERROR_SUCCESS)