From d830ad38afc2eda22f5fd4301b0aeaae80e9fc12 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 15 Jan 2015 20:56:12 +0100 Subject: [PATCH] Change win32_browser function --- gfx/drivers_context/win32_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers_context/win32_common.c b/gfx/drivers_context/win32_common.c index 68e3c4afc2..37227638e5 100644 --- a/gfx/drivers_context/win32_common.c +++ b/gfx/drivers_context/win32_common.c @@ -44,10 +44,10 @@ static bool win32_browser(HWND owner, char *filename, const char *extensions, ofn.nMaxFile = PATH_MAX; ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY; - if (GetOpenFileName(&ofn)) - return true; + if (!GetOpenFileName(&ofn)) + return false; - return false; + return true; } LRESULT win32_menu_loop(HWND owner, WPARAM wparam)