Fix Notepad++ ARM64 version refusing to load plugins in ARM64 version
This commit is contained in:
parent
266ca29861
commit
a459523659
|
@ -27,9 +27,17 @@ using namespace std;
|
||||||
const TCHAR * USERMSG = TEXT(" is not compatible with the current version of Notepad++.\n\n\
|
const TCHAR * USERMSG = TEXT(" is not compatible with the current version of Notepad++.\n\n\
|
||||||
Do you want to remove this plugin from the plugins directory to prevent this message from the next launch?");
|
Do you want to remove this plugin from the plugins directory to prevent this message from the next launch?");
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
|
||||||
|
#ifdef _M_ARM64
|
||||||
|
#define ARCH_TYPE IMAGE_FILE_MACHINE_ARM64
|
||||||
|
const TCHAR *ARCH_ERR_MSG = TEXT("Cannot load 32-bit or non-ARM64 plugin.");
|
||||||
|
#else
|
||||||
#define ARCH_TYPE IMAGE_FILE_MACHINE_AMD64
|
#define ARCH_TYPE IMAGE_FILE_MACHINE_AMD64
|
||||||
const TCHAR *ARCH_ERR_MSG = TEXT("Cannot load 32-bit plugin.");
|
const TCHAR *ARCH_ERR_MSG = TEXT("Cannot load 32-bit plugin.");
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define ARCH_TYPE IMAGE_FILE_MACHINE_I386
|
#define ARCH_TYPE IMAGE_FILE_MACHINE_I386
|
||||||
const TCHAR *ARCH_ERR_MSG = TEXT("Cannot load 64-bit plugin.");
|
const TCHAR *ARCH_ERR_MSG = TEXT("Cannot load 64-bit plugin.");
|
||||||
|
|
Loading…
Reference in New Issue