1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-30 18:24:36 +01:00

Small bug fix for symbols download

This commit is contained in:
Valentin Radu 2021-10-17 03:31:49 +03:00
parent 74b6bb34b4
commit 12bec9c5fa
2 changed files with 32 additions and 23 deletions

View File

@ -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"

View File

@ -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),