diff --git a/ExplorerPatcher/ExplorerPatcher.rc b/ExplorerPatcher/ExplorerPatcher.rc index 9bcb3c2..b74fa9a 100644 --- a/ExplorerPatcher/ExplorerPatcher.rc +++ b/ExplorerPatcher/ExplorerPatcher.rc @@ -51,8 +51,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 22000,258,30,3 - PRODUCTVERSION 22000,258,30,3 + FILEVERSION 22000,258,30,5 + PRODUCTVERSION 22000,258,30,5 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -69,12 +69,12 @@ BEGIN BEGIN VALUE "CompanyName", "VALINET Solutions SRL" VALUE "FileDescription", "ExplorerPatcher" - VALUE "FileVersion", "22000.258.30.3" + VALUE "FileVersion", "22000.258.30.5" VALUE "InternalName", "ExplorerPatcher.dll" VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved." VALUE "OriginalFilename", "ExplorerPatcher.dll" VALUE "ProductName", "ExplorerPatcher" - VALUE "ProductVersion", "22000.258.30.3" + VALUE "ProductVersion", "22000.258.30.5" END END BLOCK "VarFileInfo" diff --git a/ExplorerPatcher/symbols.c b/ExplorerPatcher/symbols.c index a0dbc72..77c29bb 100644 --- a/ExplorerPatcher/symbols.c +++ b/ExplorerPatcher/symbols.c @@ -176,6 +176,25 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params) MAX_PATH, ".dll" ); + RegCreateKeyExW( + HKEY_CURRENT_USER, + TEXT(REGPATH) L"\\" TEXT(TWINUI_PCSHELL_SB_NAME), + 0, + NULL, + REG_OPTION_NON_VOLATILE, + KEY_WRITE, + NULL, + &hKey, + &dwDisposition + ); + if (!hKey || hKey == INVALID_HANDLE_VALUE) + { + FreeLibraryAndExitThread( + hModule, + 9 + ); + return 9; + } printf("Downloading symbols for \"%s\"...\n", twinui_pcshell_sb_dll); if (VnDownloadSymbols( NULL, @@ -199,6 +218,15 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params) )) { printf("Hooking Win+C is not available for this build.\n"); + DWORD dwZero = 0; + RegSetValueExW( + hKey, + TEXT(TWINUI_PCSHELL_SB_7), + 0, + REG_DWORD, + &dwZero, + sizeof(DWORD) + ); if (VnGetSymbols( szSettingsPath, symbols_PTRS.twinui_pcshell_PTRS, @@ -213,25 +241,6 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params) return 5; } } - RegCreateKeyExW( - HKEY_CURRENT_USER, - TEXT(REGPATH) L"\\" TEXT(TWINUI_PCSHELL_SB_NAME), - 0, - NULL, - REG_OPTION_NON_VOLATILE, - KEY_WRITE, - NULL, - &hKey, - &dwDisposition - ); - if (!hKey || hKey == INVALID_HANDLE_VALUE) - { - FreeLibraryAndExitThread( - hModule, - 9 - ); - return 9; - } RegSetValueExW( hKey, TEXT(TWINUI_PCSHELL_SB_0),