From 75bed3c9dcfbdde9b642e36f19d2fb48f3cef758 Mon Sep 17 00:00:00 2001 From: RamiLego4Game Date: Wed, 16 May 2018 19:05:40 +0300 Subject: [PATCH] Fix relocation data directory corruption --- love-pe.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/love-pe.lua b/love-pe.lua index 261f4c0..9f2a895 100644 --- a/love-pe.lua +++ b/love-pe.lua @@ -780,12 +780,6 @@ function icapi.replaceIcon(exeFile,icoFile,newFile) end end - for id, Directory in ipairs(DataDirectories) do - if Directory[1] > Sections[RSRC_ID].VirtualAddress then - Directory[1] = Directory[1] + ShiftOffset - end - end - --Copy the DOS,PE,COFF and PEOpt headers exeFile:seek(0) newFile:write(exeFile:read(DataDirectoriesOffset))