r = mkaply@us.ibm.com, a = brendan
OS/2 bringup continues on M16 - These files are OS/2 only!


git-svn-id: svn://10.0.0.236/trunk@70605 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2000-05-22 19:38:22 +00:00
parent 671331210b
commit 05b72d5cc8
24 changed files with 421 additions and 133 deletions

View File

@@ -283,7 +283,7 @@ nsLocalFile::InitWithPath(const char *filePath)
if(temp[len] == '\\')
temp[len] = '\0';
mPath.SetString(nativeFilePath);
mPath.Assign(nativeFilePath);
nsAllocator::Free( nativeFilePath );
return NS_OK;
}
@@ -431,6 +431,20 @@ nsLocalFile::Append(const char *node)
#endif
}
NS_IMETHODIMP
nsLocalFile::AppendRelativePath(const char *node)
{
// Cannot start with a / or have .. or have / anywhere
if (!node || (*node == '/') || (strstr(node, "..") != nsnull) ||
(strchr(node, '/') != nsnull))
{
return NS_ERROR_FILE_UNRECOGNIZED_PATH;
}
mPath.Append("\\");
mPath.Append(node);
return NS_OK;
}
NS_IMETHODIMP
nsLocalFile::Normalize()
{