From 11160c804d1212923dee468b9838e2d5f4eeb136 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 22 Oct 2023 00:08:35 +0700 Subject: [PATCH] GUI: Fixed a bug where "Remember last used section" doesn't remember the current page after being enabled --- ExplorerPatcher/ExplorerPatcher.vcxproj | 4 ++-- ExplorerPatcher/def.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ExplorerPatcher/ExplorerPatcher.vcxproj b/ExplorerPatcher/ExplorerPatcher.vcxproj index 1f07217..10dadad 100644 --- a/ExplorerPatcher/ExplorerPatcher.vcxproj +++ b/ExplorerPatcher/ExplorerPatcher.vcxproj @@ -96,7 +96,7 @@ true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;WINRT_NO_SOURCE_LOCATION;%(PreprocessorDefinitions) true $(SolutionDir)libs\funchook\include;$(SolutionDir)libs\libvalinet;$(SolutionDir)libs\funchook\distorm\include;$(SolutionDir)libs\Detours\include;%(AdditionalIncludeDirectories) MultiThreaded @@ -126,7 +126,7 @@ true true true - NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;WINRT_NO_SOURCE_LOCATION;%(PreprocessorDefinitions) true $(SolutionDir)libs\funchook\include;$(SolutionDir)libs\libvalinet;$(SolutionDir)libs\funchook\distorm\include;$(SolutionDir)libs\Detours\include;%(AdditionalIncludeDirectories) MultiThreaded diff --git a/ExplorerPatcher/def.h b/ExplorerPatcher/def.h index 3b1d683..ba61dc2 100644 --- a/ExplorerPatcher/def.h +++ b/ExplorerPatcher/def.h @@ -1,8 +1,8 @@ #ifndef _H_DEF_H_ #define _H_DEF_H_ #define APPID L"Microsoft.Windows.Explorer" -#define REGPATH "SOFTWARE\\ExplorerPatcher" -#define REGPATH_OLD "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ExplorerPatcher" +#define REGPATH "Software\\ExplorerPatcher" +#define REGPATH_OLD "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ExplorerPatcher" #define REGPATH_STARTMENU REGPATH_OLD #define SPECIAL_FOLDER CSIDL_PROGRAM_FILES #define SPECIAL_FOLDER_LEGACY CSIDL_APPDATA