Adding buffered output to nsIFileStream.

Renaming nsIFile to nsIOpenFile.
commenting out a testcase in FilesTest.cpp which fails.  evil, i know.


git-svn-id: svn://10.0.0.236/trunk@46395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
1999-09-08 20:12:35 +00:00
parent 2cb20d8fee
commit 8d1ff9ee8b
8 changed files with 100 additions and 22 deletions

View File

@@ -263,7 +263,7 @@ NS_IMETHODIMP
nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteCount)
{
// write the data to the file and update the target
nsCOMPtr<nsIFile> thing;
nsCOMPtr<nsIOpenFile> thing;
thing = do_QueryInterface(mFileThing);
thing->Open(mFileSpec, (PR_RDWR|PR_APPEND), 0700);
PRUint32 actualCount;

View File

@@ -263,7 +263,7 @@ NS_IMETHODIMP
nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteCount)
{
// write the data to the file and update the target
nsCOMPtr<nsIFile> thing;
nsCOMPtr<nsIOpenFile> thing;
thing = do_QueryInterface(mFileThing);
thing->Open(mFileSpec, (PR_RDWR|PR_APPEND), 0700);
PRUint32 actualCount;