diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-09-23 03:39:09 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-09-23 03:39:09 +0200 |
commit | f52322ee208de4af3ed28b1cfbf8404951eab0a2 (patch) | |
tree | 7bd98258283839fc1c00cb2b3aa797b2a6c3968d /src/libui_sdl/libui/windows/stddialogs.cpp | |
parent | 14b7cf1987f01b706a902d2bafdd4e72bb88889a (diff) |
* support for dragdrop
* support for loading ROMs via command line (except it will try to get the BIOS/firmware from where the ROM is. derp)
* re-add missing BIOS/firmware dialog. fix libui to allow dialogs without a parent window.
Diffstat (limited to 'src/libui_sdl/libui/windows/stddialogs.cpp')
-rw-r--r-- | src/libui_sdl/libui/windows/stddialogs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/windows/stddialogs.cpp b/src/libui_sdl/libui/windows/stddialogs.cpp index dbd58fe..26d1219 100644 --- a/src/libui_sdl/libui/windows/stddialogs.cpp +++ b/src/libui_sdl/libui/windows/stddialogs.cpp @@ -14,7 +14,7 @@ // - when a dialog is active, tab navigation in other windows stops working // - when adding uiOpenFolder(), use IFileDialog as well - https://msdn.microsoft.com/en-us/library/windows/desktop/bb762115%28v=vs.85%29.aspx -#define windowHWND(w) ((HWND) uiControlHandle(uiControl(w))) +#define windowHWND(w) (w ? (HWND) uiControlHandle(uiControl(w)) : NULL) char *commonItemDialog(HWND parent, REFCLSID clsid, REFIID iid, char* filter, char* initpath, FILEOPENDIALOGOPTIONS optsadd) { |