Skip to content

Commit

Permalink
Merge pull request 86Box#4274 from Cacodemon345/patch-174
Browse files Browse the repository at this point in the history
Compile fixes for Qt6 on Windows
  • Loading branch information
OBattler authored Jun 16, 2024
2 parents 382b941 + c9176b2 commit 15d2ee2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/qt/qt_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ main(int argc, char *argv[])

#ifdef Q_OS_WINDOWS
# if !defined(EMU_BUILD_NUM) || (EMU_BUILD_NUM != 5624)
HWND winbox = FindWindow("TWinBoxMain", NULL);
HWND winbox = FindWindowW(L"TWinBoxMain", NULL);
if (winbox &&
FindWindowEx(winbox, NULL, "TToolBar", NULL) &&
FindWindowEx(winbox, NULL, "TListBox", NULL) &&
FindWindowEx(winbox, NULL, "TStatusBar", NULL) &&
(winbox = FindWindowEx(winbox, NULL, "TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
FindWindowEx(winbox, NULL, "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 15d2ee2

Please sign in to comment.