出力フォルダを選択するときにエラー落ちすることがあるバグを修正 #82

This commit is contained in:
lltcggie 2017-04-16 21:07:01 +09:00
parent 2b965ce07c
commit f81a5b7a6a

View File

@ -1287,7 +1287,7 @@ UINT_PTR DialogEvent::OFNHookProcOut(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARA
szPath[_countof(szPath) - 1] = TEXT('\0'); szPath[_countof(szPath) - 1] = TEXT('\0');
boost::filesystem::path p(szPath); boost::filesystem::path p(szPath);
if (boost::filesystem::is_empty(szPath) || boost::filesystem::is_directory(szPath)) if (boost::filesystem::exists(p) && (boost::filesystem::is_empty(p) || boost::filesystem::is_directory(p)))
{ {
const auto filename = getTString(p.filename()); const auto filename = getTString(p.filename());