Skip to content

Commit

Permalink
Built-in support for build 22000.318
Browse files Browse the repository at this point in the history
  • Loading branch information
valinet committed Nov 9, 2021
1 parent 241fde9 commit 742f946
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This document includes the same release notes as in the [Releases](https://github.com/valinet/ExplorerPatcher/releases) section on GitHub.

## 22000.318.34

Tested on build 22000.318.

#### Feature enhancements

* Built-in support for build 22000.318

## 22000.282.33

Tested on build 22000.282.
Expand Down
8 changes: 4 additions & 4 deletions ExplorerPatcher/ExplorerPatcher.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 22000,282,33,0
PRODUCTVERSION 22000,282,33,0
FILEVERSION 22000,318,34,0
PRODUCTVERSION 22000,318,34,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "VALINET Solutions SRL"
VALUE "FileDescription", "ExplorerPatcher"
VALUE "FileVersion", "22000.282.33.0"
VALUE "FileVersion", "22000.318.34.0"
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.282.33.0"
VALUE "ProductVersion", "22000.318.34.0"
END
END
BLOCK "VarFileInfo"
Expand Down
7 changes: 5 additions & 2 deletions ExplorerPatcher/symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule)
ubr
);

if (IsBuild22000_282(rovi, ubr))
if (IsBuild(rovi, ubr, 22000, 282) || IsBuild(rovi, ubr, 22000, 318))
{
symbols_PTRS->twinui_pcshell_PTRS[0] = 0x217CE6;
symbols_PTRS->twinui_pcshell_PTRS[1] = 0x5CC570;
Expand Down Expand Up @@ -728,7 +728,10 @@ BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule)
&dwSize
);
RegCloseKey(hKey);
if (!bNeedToDownload && !IsBuild22000_282(rovi, ubr))
if (!bNeedToDownload &&
!IsBuild(rovi, ubr, 22000, 282) &&
!IsBuild(rovi, ubr, 22000, 318)
)
{
bNeedToDownload = wcscmp(szReportedVersion, szStoredVersion);
}
Expand Down
6 changes: 3 additions & 3 deletions ExplorerPatcher/symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params);

BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule);

inline BOOL IsBuild22000_282(RTL_OSVERSIONINFOW rovi, DWORD32 ubr)
inline BOOL IsBuild(RTL_OSVERSIONINFOW rovi, DWORD32 ubr, DWORD BuildNumber, DWORD BuildMinor)
{
return (rovi.dwMajorVersion == 10 &&
rovi.dwMinorVersion == 0 &&
rovi.dwBuildNumber == 22000 &&
ubr == 282);
rovi.dwBuildNumber == BuildNumber &&
ubr == BuildMinor);
}
#endif

0 comments on commit 742f946

Please sign in to comment.