Skip to content

Commit

Permalink
Symbols: Remove unneeded setting the keys to 0 because the tree is de…
Browse files Browse the repository at this point in the history
…leted anyway if the hash does not match
  • Loading branch information
Amrsatrio committed Oct 11, 2023
1 parent acc0131 commit 80f11ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ExplorerPatcher/symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ static BOOL ProcessTwinuiPcshellSymbols(const char* pszSettingsPath, DWORD* pOff
return FALSE;
}

DWORD dwZero = 0;
CHAR szHash[100];
WCHAR wszPath[MAX_PATH];

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 80f11ae

Please sign in to comment.