From b52e7446cdfbe5af20723ea693fc06c3839c1973 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 2 Sep 2021 23:52:17 +0300 Subject: [PATCH] Reset Explorer patch offsets when redownloading symbols --- ExplorerPatcher/dllmain.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index fcdd981..569692a 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -2584,6 +2584,31 @@ DWORD DownloadSymbols(TCHAR* wszSettingsPath) #endif ); + VnWriteUInt( + TEXT(EXPLORER_SB_NAME), + TEXT(EXPLORER_PATCH_OFFSET_OK), + 0, + wszSettingsPath + ); + VnWriteUInt( + TEXT(EXPLORER_SB_NAME), + TEXT(EXPLORER_PATCH_DIRTY), + 0, + wszSettingsPath + ); + VnWriteUInt( + TEXT(EXPLORER_SB_NAME), + TEXT(EXPLORER_PATCH_OFFSET_STRAT), + 0, + wszSettingsPath + ); + VnWriteUInt( + TEXT(EXPLORER_SB_NAME), + TEXT(EXPLORER_PATCH_OFFSET), + 0, + wszSettingsPath + ); + Sleep(4000); TCHAR wszExplorerPath[MAX_PATH + 1];