Fixing nsCOMPtr usage for unix.

git-svn-id: svn://10.0.0.236/trunk@22987 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com
1999-03-06 00:07:06 +00:00
parent 8e97b9e85f
commit adc585142d
2 changed files with 6 additions and 2 deletions

View File

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