diff --git a/src/main/native/org_cryptomator_windows_keychain_WinDataProtection_Native.cpp b/src/main/native/org_cryptomator_windows_keychain_WinDataProtection_Native.cpp index 2f5256b..51d4966 100644 --- a/src/main/native/org_cryptomator_windows_keychain_WinDataProtection_Native.cpp +++ b/src/main/native/org_cryptomator_windows_keychain_WinDataProtection_Native.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include "org_cryptomator_windows_keychain_WinDataProtection_Native.h" JNIEXPORT jbyteArray JNICALL Java_org_cryptomator_windows_keychain_WinDataProtection_00024Native_protect(JNIEnv *env, jobject thisObj, jbyteArray cleartext, jbyteArray salt) { diff --git a/src/main/native/org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp b/src/main/native/org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp index ae7d9b5..ffaf353 100644 --- a/src/main/native/org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp +++ b/src/main/native/org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp @@ -17,7 +17,7 @@ void throwIllegalStateException(JNIEnv *env, const char* message) { JNIEXPORT jint JNICALL Java_org_cryptomator_windows_uiappearance_WinAppearance_00024Native_getCurrentTheme (JNIEnv *env, jobject thisObject){ DWORD data{}; DWORD dataSize = sizeof(data); - LSTATUS status = RegGetValueW(HKEY_CURRENT_USER, L"(Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize)", L"AppsUseLightTheme", RRF_RT_DWORD, NULL, &data, &dataSize); + LSTATUS status = RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", L"AppsUseLightTheme", RRF_RT_DWORD, NULL, &data, &dataSize); if(status != ERROR_SUCCESS){ char msg[50]; sprintf_s(msg, 50, "Failed to read registry value (status %d)", (int) status); @@ -28,7 +28,7 @@ JNIEXPORT jint JNICALL Java_org_cryptomator_windows_uiappearance_WinAppearance_0 JNIEXPORT void JNICALL Java_org_cryptomator_windows_uiappearance_WinAppearance_00024Native_waitForNextThemeChange(JNIEnv *env, jobject thisObj){ HKEY key; - LSTATUS status = RegOpenKeyExW(HKEY_CURRENT_USER, L"(Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize)", 0, KEY_READ, &key); + LSTATUS status = RegOpenKeyExW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", 0, KEY_READ, &key); if (status != ERROR_SUCCESS) { char msg[50]; sprintf_s(msg, 50,"Failed to open registry key (status %d)", (int) status);