From: darco Date: Wed, 9 Nov 2005 21:53:12 +0000 (+0000) Subject: Added code to handle converting Win32's short file names to long file names. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4106e1bfd5d478d23fc173ce76d3b6af77f80e04;p=synfig.git Added code to handle converting Win32's short file names to long file names. git-svn-id: http://svn.voria.com/code@57 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index e726bf6..26b923e 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -1927,6 +1927,12 @@ App::open(std::string filename) bool App::open_as(std::string filename,std::string as) { +#ifdef WIN32 + char long_name[1024]; + if(GetLongPathName(as.c_str(),long_name,sizeof(long_name))); + as=long_name; +#endif + try { OneMoment one_moment;