Skip to content

Commit

Permalink
Fix MinGW build (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Jul 17, 2024
1 parent a237400 commit 1af77c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Quake/sys_sdl_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <mmsystem.h>
#include <winreg.h>
Expand Down Expand Up @@ -557,7 +561,7 @@ qboolean Sys_Explore (const char *path)
if (FAILED (hr))
goto cleanup_folder;

hr = SHOpenFolderAndSelectItems (folder, 1, &file, 0);
hr = SHOpenFolderAndSelectItems (folder, 1, (LPCITEMIDLIST *) &file, 0);
if (SUCCEEDED (hr))
result = true;

Expand Down

0 comments on commit 1af77c2

Please sign in to comment.