Use PH_EXECUTING_IN_WOW64 define instead

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@6014 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2015-06-01 08:37:44 +00:00
parent 08d9cba796
commit 16bd6cdb6a
2 changed files with 7 additions and 3 deletions
+6
View File
@@ -44,6 +44,12 @@ extern COLORREF PhSysWindowColor;
// main
#ifdef _WIN64
#define PH_EXECUTING_IN_WOW64 (FALSE)
#else
#define PH_EXECUTING_IN_WOW64 (USER_SHARED_DATA->NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
#endif
typedef struct _PH_STARTUP_PARAMETERS
{
union
+1 -3
View File
@@ -245,8 +245,7 @@ INT WINAPI wWinMain(
RtlExitUserProcess(STATUS_SUCCESS);
}
#ifndef _WIN64
if (USER_SHARED_DATA->NativeProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
if (PH_EXECUTING_IN_WOW64)
{
PhShowWarning(
NULL,
@@ -255,7 +254,6 @@ INT WINAPI wWinMain(
L"Please run the 64-bit version of Process Hacker instead."
);
}
#endif
PhPluginsEnabled = PhGetIntegerSetting(L"EnablePlugins") && !PhStartupParameters.NoPlugins;