mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user