diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-05-26 16:23:11 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-05-26 16:23:11 +0400 |
commit | df823d8896d6d1d81bd9a5f662c5f14f32f19bb9 (patch) | |
tree | d9488060fe7206f0ecc662b585e01c851785417e /source/blender/blenlib | |
parent | e6d396d17de4105a5c10297e3375b88e04341651 (diff) |
Since we don't support win2k or older anymore, remove old shortname code. Finally nice full names.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index 1f4b0ffdd5c..47e50e375f0 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -1691,7 +1691,6 @@ void BLI_where_am_i(char *fullname, const size_t maxlen, const char *name) #ifdef _WIN32 if(GetModuleFileName(0, fullname, maxlen)) { - GetShortPathName(fullname, fullname, maxlen); if(!BLI_exists(fullname)) { printf("path can't be found: \"%.*s\"\n", maxlen, fullname); MessageBox(NULL, "path constains invalid characters or is too long (see console)", "Error", MB_OK); @@ -1745,18 +1744,6 @@ void BLI_where_am_i(char *fullname, const size_t maxlen, const char *name) printf("guessing '%s' == '%s'\n", name, fullname); } #endif - -#ifdef _WIN32 - // in windows change long filename to short filename because - // win2k doesn't know how to parse a commandline with lots of - // spaces and double-quotes. There's another solution to this - // with spawnv(P_WAIT, bprogname, argv) instead of system() but - // that's even uglier - GetShortPathName(fullname, fullname, maxlen); -#if defined(DEBUG) - printf("Shortname = '%s'\n", fullname); -#endif -#endif } } |