diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 996bee3d2..264bac9aa 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -330,7 +330,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { if (xparam.hasResult()) param.setResult(xparam.getResult()); if (xparam.hasThrowable()) - param.setResult(xparam.getThrowable()); + param.setThrowable(xparam.getThrowable()); param.setObjectExtra("xextra", xparam.getExtras()); } catch (Throwable ex) { Util.bug(null, ex); diff --git a/src/biz/bokhorst/xprivacy/XRuntime.java b/src/biz/bokhorst/xprivacy/XRuntime.java index b8abc610c..0e3821776 100644 --- a/src/biz/bokhorst/xprivacy/XRuntime.java +++ b/src/biz/bokhorst/xprivacy/XRuntime.java @@ -74,7 +74,7 @@ protected void before(XParam param) throws Throwable { } else if (mMethod == Methods.load || mMethod == Methods.loadLibrary) { if (isRestrictedExtra(param, (String) param.args[0])) - param.setResult(new UnsatisfiedLinkError()); + param.setThrowable(new UnsatisfiedLinkError()); } else Util.log(this, Log.WARN, "Unknown method=" + param.method.getName());