fix filebox.init_file()

Fix filebox.init_file()
This commit is contained in:
besh81
2018-02-12 14:48:03 +01:00
parent 176d9e5dd9
commit b00ab1df0f

View File

@@ -1041,7 +1041,8 @@ namespace nana
bool filebox::show() const bool filebox::show() const
{ {
#if defined(NANA_WINDOWS) #if defined(NANA_WINDOWS)
std::wstring wfile; auto winitfile = to_wstring(impl_->file);
std::wstring wfile(winitfile);
wfile.resize(520); wfile.resize(520);
OPENFILENAME ofn; OPENFILENAME ofn;