Bug 278113 - Fix parameter handling. r=darin.
Original committer: pedemont%us.ibm.com Original revision: 1.5 Original date: 2005/01/13 16:30:19 git-svn-id: svn://10.0.0.236/trunk@212554 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -90,16 +90,7 @@ nsAppFileLocProviderProxy::GetFile(const char* aProp, PRBool* aIsPersistant,
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// Set boolean output value
|
||||
jboolean isCopy = PR_FALSE;
|
||||
jboolean* array = mJavaEnv->GetBooleanArrayElements(persistant, &isCopy);
|
||||
if (!array) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
} else {
|
||||
*aIsPersistant = array[0];
|
||||
if (isCopy) {
|
||||
mJavaEnv->ReleaseBooleanArrayElements(persistant, array, JNI_ABORT);
|
||||
}
|
||||
}
|
||||
mJavaEnv->GetBooleanArrayRegion(persistant, 0, 1, (jboolean*) aIsPersistant);
|
||||
|
||||
// Set nsIFile result value
|
||||
nsCOMPtr<nsILocalFile> localFile;
|
||||
|
||||
Reference in New Issue
Block a user