|
From: <cre...@us...> - 2007-11-07 03:06:32
|
Revision: 1777
http://frontierkernel.svn.sourceforge.net/frontierkernel/?rev=1777&view=rev
Author: creecode
Date: 2007-11-06 19:06:32 -0800 (Tue, 06 Nov 2007)
Log Message:
-----------
in pathtofilespec function, for Windows, call GetLongPathName to always store long path name
Modified Paths:
--------------
Frontier/branches/IUDA_Desktop/Common/source/filepath.c
Modified: Frontier/branches/IUDA_Desktop/Common/source/filepath.c
===================================================================
--- Frontier/branches/IUDA_Desktop/Common/source/filepath.c 2007-11-07 03:04:22 UTC (rev 1776)
+++ Frontier/branches/IUDA_Desktop/Common/source/filepath.c 2007-11-07 03:06:32 UTC (rev 1777)
@@ -270,6 +270,8 @@
boolean pathtofilespec ( bigstring bspath, ptrfilespec fs ) {
//
+ // 2007-11-05 creedon: for Windows, call GetLongPathName to always store long path name
+ //
// 2006-10-16 creedon: for Mac, FSRef-ized
//
// 5.0d8 dmb: clear fs first thing
@@ -288,7 +290,13 @@
//
bigstring bsfolder;
-
+
+ #ifdef WIN95VERSION
+
+ char fn [ 300 ];
+
+ #endif
+
clearbytes ( fs, sizeof ( *fs ) );
if ( isemptystring ( bspath ) )
@@ -526,6 +534,11 @@
#ifdef WIN95VERSION
+ nullterminate ( bspath );
+
+ if ( GetLongPathName ( stringbaseaddress ( bspath ), fn, 298 ) )
+ copyctopstring ( fn, bspath );
+
copystring (bspath, fsname (fs));
folderfrompath (bspath, bsfolder);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|