Browse Source

Fix Debug information wrong OS information detected with windows 11 issue

Fix #11011
pull/11031/head
Don Ho 3 years ago
parent
commit
5dada11848
  1. 2
      PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h
  2. 5
      PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp

2
PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h

@ -37,7 +37,7 @@ enum LangType {L_TEXT, L_PHP , L_C, L_CPP, L_CS, L_OBJC, L_JAVA, L_RC,\
// The end of enumated language type, so it should be always at the end
L_EXTERNAL};
enum winVer{ WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7, WV_WIN8, WV_WIN81, WV_WIN10};
enum winVer{ WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV_S2003, WV_XPX64, WV_VISTA, WV_WIN7, WV_WIN8, WV_WIN81, WV_WIN10 };
enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };

5
PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp

@ -231,6 +231,11 @@ INT_PTR CALLBACK DebugInfoDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM /
{
generic_sprintf(szProductName, TEXT("%s"), (NppParameters::getInstance()).getWinVersionStr().c_str());
}
// Override ProductName if it's Windows 11
if (NppDarkMode::isWindows11())
generic_sprintf(szProductName, TEXT("%s"), TEXT("Windows 11"));
if (szCurrentBuildNumber[0] == '\0')
{
DWORD dwVersion = GetVersion();

Loading…
Cancel
Save