Merge pull request #4274 from Cacodemon345/patch-174
Compile fixes for Qt6 on Windows
This commit is contained in:
@@ -240,13 +240,13 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
# if !defined(EMU_BUILD_NUM) || (EMU_BUILD_NUM != 5624)
|
# if !defined(EMU_BUILD_NUM) || (EMU_BUILD_NUM != 5624)
|
||||||
HWND winbox = FindWindow("TWinBoxMain", NULL);
|
HWND winbox = FindWindowW(L"TWinBoxMain", NULL);
|
||||||
if (winbox &&
|
if (winbox &&
|
||||||
FindWindowEx(winbox, NULL, "TToolBar", NULL) &&
|
FindWindowExW(winbox, NULL, L"TToolBar", NULL) &&
|
||||||
FindWindowEx(winbox, NULL, "TListBox", NULL) &&
|
FindWindowExW(winbox, NULL, L"TListBox", NULL) &&
|
||||||
FindWindowEx(winbox, NULL, "TStatusBar", NULL) &&
|
FindWindowExW(winbox, NULL, L"TStatusBar", NULL) &&
|
||||||
(winbox = FindWindowEx(winbox, NULL, "TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
|
(winbox = FindWindowExW(winbox, NULL, L"TPageControl", NULL)) && /* holds a TTabSheet even on VM pages */
|
||||||
FindWindowEx(winbox, NULL, "TTabSheet", NULL))
|
FindWindowExW(winbox, NULL, L"TTabSheet", NULL))
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
QMessageBox warningbox(QMessageBox::Icon::Warning, QObject::tr("WinBox is no longer supported"),
|
QMessageBox warningbox(QMessageBox::Icon::Warning, QObject::tr("WinBox is no longer supported"),
|
||||||
|
Reference in New Issue
Block a user