Skip to content

Commit a9a0fb3

Browse files
committed
Setup: Fix 32bit install winsiderss#236
1 parent 505e37f commit a9a0fb3

File tree

1 file changed

+5
-2
lines changed
  • tools/CustomSetupTool/CustomSetupTool

1 file changed

+5
-2
lines changed

tools/CustomSetupTool/CustomSetupTool/extract.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ BOOLEAN SetupExtractBuild(
3131
ULONG64 currentLength = 0;
3232
mz_zip_archive zip_archive = { 0 };
3333
PPH_STRING extractPath = NULL;
34+
SYSTEM_INFO info;
35+
36+
GetNativeSystemInfo(&info);
3437

3538
#ifdef PH_BUILD_API
3639
ULONG resourceLength;
@@ -69,7 +72,7 @@ BOOLEAN SetupExtractBuild(
6972

7073
fileName = PhConvertUtf8ToUtf16(zipFileStat.m_filename);
7174

72-
if (USER_SHARED_DATA->NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
75+
if (info.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
7376
{
7477
if (PhStartsWithString2(fileName, L"x32\\", TRUE))
7578
continue;
@@ -115,7 +118,7 @@ BOOLEAN SetupExtractBuild(
115118
if (PhFindStringInString(fileName, 0, L"usernotesdb.xml") != -1)
116119
continue;
117120

118-
if (USER_SHARED_DATA->NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
121+
if (info.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
119122
{
120123
if (PhStartsWithString2(fileName, L"x32\\", TRUE))
121124
continue;

0 commit comments

Comments
 (0)