OSDN Git Service

Added support for newer version of VS2022 + ignore the same warnings in "Release...
[mutilities/MUtilities.git] / src / Terminal_Win32.cpp
index bdc5e60..b2b510e 100644 (file)
@@ -427,7 +427,7 @@ void MUtils::Terminal::set_icon(const QIcon &icon)
                        bool success = false;
                        if (const SetConsoleIconFun pSetConsoleIconFun = MUtils::Win32Utils::resolve<SetConsoleIconFun>(QLatin1String("kernel32"), QLatin1String("SetConsoleIcon")))
                        {
-                               const DWORD before = GetLastError();
+                               //const DWORD before = GetLastError();
                                if (pSetConsoleIconFun(hIcon))
                                {
                                        success = true;