File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tools/CustomSetupTool/CustomSetupTool Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ BOOLEAN SetupExtractBuild(
31
31
ULONG64 currentLength = 0 ;
32
32
mz_zip_archive zip_archive = { 0 };
33
33
PPH_STRING extractPath = NULL ;
34
+ SYSTEM_INFO info ;
35
+
36
+ GetNativeSystemInfo (& info );
34
37
35
38
#ifdef PH_BUILD_API
36
39
ULONG resourceLength ;
@@ -69,7 +72,7 @@ BOOLEAN SetupExtractBuild(
69
72
70
73
fileName = PhConvertUtf8ToUtf16 (zipFileStat .m_filename );
71
74
72
- if (USER_SHARED_DATA -> NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 )
75
+ if (info . wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 )
73
76
{
74
77
if (PhStartsWithString2 (fileName , L"x32\\" , TRUE))
75
78
continue ;
@@ -115,7 +118,7 @@ BOOLEAN SetupExtractBuild(
115
118
if (PhFindStringInString (fileName , 0 , L"usernotesdb.xml" ) != -1 )
116
119
continue ;
117
120
118
- if (USER_SHARED_DATA -> NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 )
121
+ if (info . wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 )
119
122
{
120
123
if (PhStartsWithString2 (fileName , L"x32\\" , TRUE))
121
124
continue ;
You can’t perform that action at this time.
0 commit comments