Skip to content

Commit

Permalink
Compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Mar 15, 2024
1 parent 69a38ab commit aeb96bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/qt/qt_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,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
2 changes: 1 addition & 1 deletion src/win/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
enable_language(RC)

add_library(plat OBJECT win.c win_dynld.c win_cdrom.c win_keyboard.c
win_mouse.c win_serial_passthrough.c)
win_mouse.c win_serial_passthrough.c win_netsocket.c)

add_library(ui OBJECT win_ui.c win_icon.c win_stbar.c win_sdl.c win_dialog.c win_about.c
win_settings.c win_devconf.c win_snd_gain.c win_specify_dim.c win_new_floppy.c
Expand Down

0 comments on commit aeb96bf

Please sign in to comment.