Make bitness available in DebugInfo
This commit is contained in:
parent
c059cc03dc
commit
c15a0deb35
@ -92,29 +92,6 @@ int PluginsManager::loadPlugin(const TCHAR *pluginFilePath, vector<generic_strin
|
|||||||
PluginInfo *pi = new PluginInfo;
|
PluginInfo *pi = new PluginInfo;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DWORD detectionResult;
|
|
||||||
if (GetBinaryType(pluginFilePath, &detectionResult))
|
|
||||||
{
|
|
||||||
switch (detectionResult)
|
|
||||||
{
|
|
||||||
case SCS_32BIT_BINARY:
|
|
||||||
{
|
|
||||||
if (nppParams->isx64())
|
|
||||||
throw generic_string(TEXT("This plugin is in 32-bit, whereas your Notepad++ is in 64-bit."));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case SCS_64BIT_BINARY:
|
|
||||||
{
|
|
||||||
if (not nppParams->isx64())
|
|
||||||
throw generic_string(TEXT("This plugin is in 64-bit, whereas your Notepad++ is in 32-bit."));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
throw generic_string(TEXT("It's not a windows standard dll."));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
pi->_moduleName = PathFindFileName(pluginFilePath);
|
pi->_moduleName = PathFindFileName(pluginFilePath);
|
||||||
|
|
||||||
pi->_hLib = ::LoadLibrary(pluginFilePath);
|
pi->_hLib = ::LoadLibrary(pluginFilePath);
|
||||||
|
@ -123,8 +123,11 @@ INT_PTR CALLBACK DebugInfoDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM /
|
|||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
{
|
{
|
||||||
|
NppParameters *pNppParam = NppParameters::getInstance();
|
||||||
|
|
||||||
// Notepad++ version
|
// Notepad++ version
|
||||||
_debugInfoStr = NOTEPAD_PLUS_VERSION;
|
_debugInfoStr = NOTEPAD_PLUS_VERSION;
|
||||||
|
_debugInfoStr += pNppParam->isx64() ? TEXT(" (64-bit)") : TEXT(" (32-bit)");
|
||||||
_debugInfoStr += TEXT("\r\n");
|
_debugInfoStr += TEXT("\r\n");
|
||||||
|
|
||||||
// Build time
|
// Build time
|
||||||
|
Loading…
Reference in New Issue
Block a user