From caae99952c818fe5027a8955668323b228859929 Mon Sep 17 00:00:00 2001 From: jarupxx Date: Sat, 24 Sep 2022 04:51:55 +0900 Subject: [PATCH] Fixed a Folder select dialog --- src/gui/WndMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/WndMain.cpp b/src/gui/WndMain.cpp index 5e609d3ed..677edd6b3 100644 --- a/src/gui/WndMain.cpp +++ b/src/gui/WndMain.cpp @@ -973,7 +973,7 @@ LRESULT CALLBACK WndMain::WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP bInfo.pidlRoot = nullptr; bInfo.pszDisplayName = szDir; bInfo.lpszTitle = "Please, select a folder"; - bInfo.ulFlags = BIF_NEWDIALOGSTYLE, BIF_EDITBOX, BIF_VALIDATE; + bInfo.ulFlags = BIF_NEWDIALOGSTYLE | BIF_EDITBOX | BIF_VALIDATE; bInfo.lpfn = nullptr; bInfo.lParam = 0; bInfo.iImage = -1; @@ -1956,7 +1956,7 @@ void WndMain::OpenXbe(const char *x_filename) } std::string errorMsg; - + if (!g_Settings->m_gui.bIgnoreInvalidXbeSig && !m_Xbe->CheckSignature()) { errorMsg += "- XBE signature check failed!\n"; }