Fix #327 for windows

This commit is contained in:
2024-08-03 17:26:00 -05:00
committed by Celtic Minstrel
parent f9ccd2bb9a
commit de36bf7536

View File

@@ -198,6 +198,7 @@ static std::string runFileDlog(OPENFILENAMEA& dlg, const std::string& file, bool
std::fill(path + file.length(), path + sz, 0);
dlg.lpstrFile = path;
dlg.lpstrDefExt = "exg";
dlg.nMaxFile = sz - 1;
dlg.nFileOffset = file.find_last_of('\\');
dlg.nFileOffset++;