mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 04:22:30 -10:00
Properly handle [inout] string params when calling a Java method from XPCOM. Allocate enough space for PRUnichar string when returning to XPCOM.
This commit is contained in:
1 parent
7be48b80e0
commit
8a7cef81b2
2 files changed
+18
-12
No files matched your search
@@ -926,8 +926,6 @@ CallXPCOMMethod(JNIEnv *env, jclass that, jobject aJavaObject,
|
||||
LOG("\t Param %d: ", i);
|
||||
const nsXPTParamInfo ¶mInfo = methodInfo->GetParam(i);
|
||||
|
||||
NS_ASSERTION(!paramInfo.IsDipper(), "Dipper!");
|
||||
|
||||
if (!paramInfo.IsRetval() && !paramInfo.IsDipper()) {
|
||||
rv = SetupParams(env, env->GetObjectArrayElement(aParams, i), paramInfo,
|
||||
methodInfo, iinfo, aMethodIndex, params, params[i]);
|
||||
|
||||
Reference in new issue
Block a user