Skip to content

Commit 742f946

Browse files
committed
Built-in support for build 22000.318
1 parent 241fde9 commit 742f946

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

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

5+
## 22000.318.34
6+
7+
Tested on build 22000.318.
8+
9+
#### Feature enhancements
10+
11+
* Built-in support for build 22000.318
12+
513
## 22000.282.33
614

715
Tested on build 22000.282.

ExplorerPatcher/ExplorerPatcher.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ END
5151
//
5252

5353
VS_VERSION_INFO VERSIONINFO
54-
FILEVERSION 22000,282,33,0
55-
PRODUCTVERSION 22000,282,33,0
54+
FILEVERSION 22000,318,34,0
55+
PRODUCTVERSION 22000,318,34,0
5656
FILEFLAGSMASK 0x3fL
5757
#ifdef _DEBUG
5858
FILEFLAGS 0x1L
@@ -69,12 +69,12 @@ BEGIN
6969
BEGIN
7070
VALUE "CompanyName", "VALINET Solutions SRL"
7171
VALUE "FileDescription", "ExplorerPatcher"
72-
VALUE "FileVersion", "22000.282.33.0"
72+
VALUE "FileVersion", "22000.318.34.0"
7373
VALUE "InternalName", "ExplorerPatcher.dll"
7474
VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved."
7575
VALUE "OriginalFilename", "ExplorerPatcher.dll"
7676
VALUE "ProductName", "ExplorerPatcher"
77-
VALUE "ProductVersion", "22000.282.33.0"
77+
VALUE "ProductVersion", "22000.318.34.0"
7878
END
7979
END
8080
BLOCK "VarFileInfo"

ExplorerPatcher/symbols.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule)
539539
ubr
540540
);
541541

542-
if (IsBuild22000_282(rovi, ubr))
542+
if (IsBuild(rovi, ubr, 22000, 282) || IsBuild(rovi, ubr, 22000, 318))
543543
{
544544
symbols_PTRS->twinui_pcshell_PTRS[0] = 0x217CE6;
545545
symbols_PTRS->twinui_pcshell_PTRS[1] = 0x5CC570;
@@ -728,7 +728,10 @@ BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule)
728728
&dwSize
729729
);
730730
RegCloseKey(hKey);
731-
if (!bNeedToDownload && !IsBuild22000_282(rovi, ubr))
731+
if (!bNeedToDownload &&
732+
!IsBuild(rovi, ubr, 22000, 282) &&
733+
!IsBuild(rovi, ubr, 22000, 318)
734+
)
732735
{
733736
bNeedToDownload = wcscmp(szReportedVersion, szStoredVersion);
734737
}

ExplorerPatcher/symbols.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ DWORD DownloadSymbols(DownloadSymbolsParams* params);
4242

4343
BOOL LoadSymbols(symbols_addr* symbols_PTRS, HMODULE hModule);
4444

45-
inline BOOL IsBuild22000_282(RTL_OSVERSIONINFOW rovi, DWORD32 ubr)
45+
inline BOOL IsBuild(RTL_OSVERSIONINFOW rovi, DWORD32 ubr, DWORD BuildNumber, DWORD BuildMinor)
4646
{
4747
return (rovi.dwMajorVersion == 10 &&
4848
rovi.dwMinorVersion == 0 &&
49-
rovi.dwBuildNumber == 22000 &&
50-
ubr == 282);
49+
rovi.dwBuildNumber == BuildNumber &&
50+
ubr == BuildMinor);
5151
}
5252
#endif

0 commit comments

Comments
 (0)