Skip to content

Commit

Permalink
chore: Drop support for Windows XP
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed May 5, 2024
1 parent 473d6b6 commit f44118f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/winextras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ QString WinExtras::getForegroundWindowExePath()
if (windowProcess != NULL)
{
WCHAR filename[MAX_PATH];
TCHAR filename_xp[MAX_PATH];
// qDebug() << QString::number(sizeof(filename)/sizeof(TCHAR));
if (pQueryFullProcessImageNameW)
{
// Windows Vista and later
Expand All @@ -283,12 +281,8 @@ QString WinExtras::getForegroundWindowExePath()
exePath = QString::fromWCharArray(filename);
} else
{
// Windows XP
memset(filename_xp, 0, sizeof(filename_xp));
GetModuleFileNameEx(windowProcess, NULL, filename_xp, MAX_PATH * sizeof(TCHAR));
exePath = QString(filename_xp);
qWarning() << "Windows XP is not supported";
}

CloseHandle(windowProcess);
}

Expand Down

0 comments on commit f44118f

Please sign in to comment.