Skip to content

Commit

Permalink
Revert "Make main window owner of WAD launcher dialog"
Browse files Browse the repository at this point in the history
This reverts commit 9ee06bb.
  • Loading branch information
bradharding committed Sep 10, 2024
1 parent 9ee06bb commit 86115f4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
#include <commdlg.h>
#include <mmsystem.h>
#include <ShellAPI.h>

#include "SDL_syswm.h"
#endif

#include "am_map.h"
Expand Down Expand Up @@ -1362,16 +1360,12 @@ static int D_OpenWADLauncher(void)
bool fileopenedok;

#if defined(_WIN32)
SDL_SysWMinfo info = { 0 };
OPENFILENAME ofn;
char szFile[4096];

SDL_VERSION(&info.version);
SDL_GetWindowWMInfo(window, &info);

ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = info.info.win.window;
ofn.hwndOwner = NULL;
M_StringCopy(szFile, (invalidwad ? invalidwad : wad), sizeof(szFile));
ofn.lpstrFile = szFile;
ofn.nMaxFile = sizeof(szFile);
Expand Down

0 comments on commit 86115f4

Please sign in to comment.