|
From: <cre...@us...> - 2006-08-25 23:39:19
|
Revision: 1485 Author: creecode Date: 2006-08-25 16:39:13 -0700 (Fri, 25 Aug 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1485&view=rev Log Message: ----------- in folderfrompathverb function fix problems with returning erroneous resutls Modified Paths: -------------- Frontier/branches/FSRef_Migration/Common/source/fileverbs.c Modified: Frontier/branches/FSRef_Migration/Common/source/fileverbs.c =================================================================== --- Frontier/branches/FSRef_Migration/Common/source/fileverbs.c 2006-08-25 23:35:59 UTC (rev 1484) +++ Frontier/branches/FSRef_Migration/Common/source/fileverbs.c 2006-08-25 23:39:13 UTC (rev 1485) @@ -580,7 +580,7 @@ static boolean folderfrompathverb (hdltreenode hparam1, tyvaluerecord *vreturned) { // - // 2006-06-18 creedon: for Mac, FSRef-ized + // 2006-08-24 creedon: for Mac, FSRef-ized // // 2.1b2 dmb: do string manipulation if given a string, but otherwise work with filespecs. in addition to avoiding string // overflow, this preserves ability to distinguish between identically-named volumes @@ -621,25 +621,22 @@ tyfilespec fs; - if (!coercetofilespec (&v)) - return (false); + if ( ! coercetofilespec ( &v ) ) + return ( false ); fs = **v.data.filespecvalue; - ( void ) extendfilespec ( &fs, &fs ); - - if (!getfileparentfolder (&fs, &fs)) - return (false); + if ( ! getfileparentfolder ( &fs, &fs ) ) + return ( false ); - getfilespecparent ( &fs ); + return ( setfilespecvalue ( &fs, vreturned ) ); - return (setfilespecvalue (&fs, vreturned)); - #else - return (false); + return ( false ); #endif + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |