Browse Source

Small bug fix for symbols download

pull/163/head
Valentin Radu 4 years ago
parent
commit
12bec9c5fa
  1. 8
      ExplorerPatcher/ExplorerPatcher.rc
  2. 47
      ExplorerPatcher/symbols.c

8
ExplorerPatcher/ExplorerPatcher.rc

@ -51,8 +51,8 @@ END
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 22000,258,30,3 FILEVERSION 22000,258,30,5
PRODUCTVERSION 22000,258,30,3 PRODUCTVERSION 22000,258,30,5
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@ -69,12 +69,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "VALINET Solutions SRL" VALUE "CompanyName", "VALINET Solutions SRL"
VALUE "FileDescription", "ExplorerPatcher" VALUE "FileDescription", "ExplorerPatcher"
VALUE "FileVersion", "22000.258.30.3" VALUE "FileVersion", "22000.258.30.5"
VALUE "InternalName", "ExplorerPatcher.dll" VALUE "InternalName", "ExplorerPatcher.dll"
VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved." VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved."
VALUE "OriginalFilename", "ExplorerPatcher.dll" VALUE "OriginalFilename", "ExplorerPatcher.dll"
VALUE "ProductName", "ExplorerPatcher" VALUE "ProductName", "ExplorerPatcher"
VALUE "ProductVersion", "22000.258.30.3" VALUE "ProductVersion", "22000.258.30.5"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"

47
ExplorerPatcher/symbols.c

@ -176,6 +176,25 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params)
MAX_PATH, MAX_PATH,
".dll" ".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); printf("Downloading symbols for \"%s\"...\n", twinui_pcshell_sb_dll);
if (VnDownloadSymbols( if (VnDownloadSymbols(
NULL, NULL,
@ -199,6 +218,15 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params)
)) ))
{ {
printf("Hooking Win+C is not available for this build.\n"); 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( if (VnGetSymbols(
szSettingsPath, szSettingsPath,
symbols_PTRS.twinui_pcshell_PTRS, symbols_PTRS.twinui_pcshell_PTRS,
@ -213,25 +241,6 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params)
return 5; 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( RegSetValueExW(
hKey, hKey,
TEXT(TWINUI_PCSHELL_SB_0), TEXT(TWINUI_PCSHELL_SB_0),

Loading…
Cancel
Save