diff --git a/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp b/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp index 356c73f..3fc695f 100644 --- a/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp +++ b/ContextMenuCustom/ContextMenuCustomHost/CustomExplorerCommand.cpp @@ -39,7 +39,7 @@ const wchar_t* CustomExplorerCommand::GetIconId() { DWORD value = 0; DWORD size = sizeof(value); - auto result = SHRegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", L"SystemUsesLightTheme", SRRF_RT_DWORD, NULL, &value, &size); + auto result = SHRegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", L"AppsUseLightTheme", SRRF_RT_DWORD, NULL, &value, &size); if (result == ERROR_SUCCESS && !!value) { return L",-103"; }