fixed bug #2533431 - Script compiling fails with !packhdr, but succeeds without?!

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5909 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-01-31 15:46:54 +00:00
parent 5a9bbbb021
commit 608701ccc8
3 changed files with 24 additions and 4 deletions

View file

@ -109,7 +109,7 @@ typedef struct RESOURCE_DIRECTORY {
)
class CResourceEditor {
public:
CResourceEditor(BYTE* pbPE, int iSize);
CResourceEditor(BYTE* pbPE, int iSize, bool bKeepData = true);
virtual ~CResourceEditor();
bool UpdateResource(WORD szType, WORD szName, LANGID wLanguage, BYTE* lpData, DWORD dwSize);
@ -144,6 +144,7 @@ public:
private:
BYTE* m_pbPE;
int m_iSize;
bool m_bKeepData;
PIMAGE_NT_HEADERS m_ntHeaders;