mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 06:45:27 +02:00
Fix Debug information wrong OS information detected with windows 11 issue
Fix #11011
This commit is contained in:
parent
68d339d224
commit
5dada11848
@ -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