From 91732847f5a1b168a295b1ae854e6f4d1ac2c07a Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Thu, 11 Apr 2019 20:00:55 -0700 Subject: [PATCH] . --- bin/changebootloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/changebootloader.js b/bin/changebootloader.js index 57fd956aa..7875c2efb 100644 --- a/bin/changebootloader.js +++ b/bin/changebootloader.js @@ -2,6 +2,6 @@ a = new ActiveXObject("scripting.filesystemobject") b = a.opentextfile(WScript.Arguments(0)) c = b.read(0x40) b.skip(0x200) -d = b.read(0x1fff600) +d = b.read(a.getfile(WScript.Arguments(0)).size-0x240) b.close() b=a.createtextfile(WScript.Arguments(0), 1).write(c+a.opentextfile(WScript.Arguments(1)).read(512)+d)