Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Jun 16, 2024
1 parent 0fa576d commit c9176b2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/qt/qt_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
* Copyright 2021-2022 Cacodemon345
* Copyright 2021-2022 Teemu Korhonen
*/

#ifdef _WIN32
#define UNICODE 1
#endif
#include <QApplication>
#include <QSurfaceFormat>
#include <QDebug>
Expand Down Expand Up @@ -224,13 +220,13 @@ main(int argc, char *argv[])

#ifdef Q_OS_WINDOWS
# if !defined(EMU_BUILD_NUM) || (EMU_BUILD_NUM != 5624)
HWND winbox = FindWindow(L"TWinBoxMain", NULL);
HWND winbox = FindWindowW(L"TWinBoxMain", NULL);
if (winbox &&
FindWindowEx(winbox, NULL, L"TToolBar", NULL) &&
FindWindowEx(winbox, NULL, L"TListBox", NULL) &&
FindWindowEx(winbox, NULL, L"TStatusBar", NULL) &&
(winbox = FindWindowEx(winbox, NULL, L"TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
FindWindowEx(winbox, NULL, L"TTabSheet", NULL))
FindWindowExW(winbox, NULL, L"TToolBar", NULL) &&
FindWindowExW(winbox, NULL, L"TListBox", NULL) &&
FindWindowExW(winbox, NULL, L"TStatusBar", NULL) &&
(winbox = FindWindowExW(winbox, NULL, L"TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
FindWindowExW(winbox, NULL, L"TTabSheet", NULL))
# endif
{
QMessageBox warningbox(QMessageBox::Icon::Warning, QObject::tr("WinBox is no longer supported"),
Expand Down

0 comments on commit c9176b2

Please sign in to comment.