Skip to content

Commit

Permalink
Secure Wine.regedit().patch() (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
plata committed Mar 6, 2019
1 parent 5e482a4 commit 72397a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engines/Wine/Plugins/regedit/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Wine.prototype.regedit = function () {
};

this.patch = function (patchContent) {
if (patchContent.getClass().getCanonicalName() == "byte[]") {
if (typeof patchContent.getClass !== "undefined" && patchContent.getClass().getCanonicalName() == "byte[]") {
patchContent = new java.lang.String(patchContent);
}
var tmpFile = createTempFile("reg");
Expand Down Expand Up @@ -64,4 +64,4 @@ Wine.prototype.regedit = function () {
return this;
};

Wine.prototype.registry = Wine.prototype.regedit;
Wine.prototype.registry = Wine.prototype.regedit;

0 comments on commit 72397a7

Please sign in to comment.