1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-27 17:00:59 +01:00

Symbols: Remove unneeded setting the keys to 0 because the tree is deleted anyway if the hash does not match

This commit is contained in:
Amrsatrio 2023-10-11 15:37:42 +07:00
parent acc0131e77
commit 80f11ae4f9

View File

@ -85,7 +85,6 @@ static BOOL ProcessTwinuiPcshellSymbols(const char* pszSettingsPath, DWORD* pOff
return FALSE;
}
DWORD dwZero = 0;
CHAR szHash[100];
WCHAR wszPath[MAX_PATH];
@ -152,7 +151,6 @@ static BOOL ProcessTwinuiPcshellSymbols(const char* pszSettingsPath, DWORD* pOff
}
//printf("[Symbols] Hooking Win+C is not available in this build.\n");
RegSetValueExW(hKey, TEXT(TWINUI_PCSHELL_SB_8), 0, REG_DWORD, &dwZero, sizeof(DWORD));
if (VnGetSymbols(
pszSettingsPath,
pOffsets,
@ -161,7 +159,6 @@ static BOOL ProcessTwinuiPcshellSymbols(const char* pszSettingsPath, DWORD* pOff
))
{
printf("[Symbols] Windows 10 window switcher style may not be available in this build.\n");
RegSetValueExW(hKey, TEXT(TWINUI_PCSHELL_SB_7), 0, REG_DWORD, &dwZero, sizeof(DWORD));
if (VnGetSymbols(
pszSettingsPath,
pOffsets,