Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
How could I have missed this?
Browse files Browse the repository at this point in the history
Refs #1398
  • Loading branch information
M66B committed Feb 21, 2014
1 parent 56b5a71 commit 91000ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/XPrivacy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/XRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 91000ab

Please sign in to comment.