mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
出力フォルダを選択するときにエラー落ちすることがあるバグを修正 #82
This commit is contained in:
parent
2b965ce07c
commit
f81a5b7a6a
@ -1287,7 +1287,7 @@ UINT_PTR DialogEvent::OFNHookProcOut(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARA
|
||||
szPath[_countof(szPath) - 1] = TEXT('\0');
|
||||
|
||||
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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user