mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
Fix Debug information wrong OS information detected with windows 11 issue
Fix #11011
This commit is contained in:
parent
68d339d224
commit
5dada11848
@ -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
|
// The end of enumated language type, so it should be always at the end
|
||||||
L_EXTERNAL};
|
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 };
|
enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };
|
||||||
|
|
||||||
|
|
||||||
|
@ -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());
|
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')
|
if (szCurrentBuildNumber[0] == '\0')
|
||||||
{
|
{
|
||||||
DWORD dwVersion = GetVersion();
|
DWORD dwVersion = GetVersion();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user