From 795678e3a27020765723ec80f60c18276ff5f3c6 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 26 Jun 2014 23:13:40 +0000 Subject: [PATCH] [BUG_FIXED] Fix OneDrive detection error. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1255 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Parameters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)