From 961a65166598d7f1c74c03af7345a621ab8fa383 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sun, 3 Dec 2017 18:10:24 +0000 Subject: [PATCH] Fixed silly 64-bit trunction warning git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6957 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/BinInterop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/BinInterop.cpp b/Source/BinInterop.cpp index d5beefa4..66ed3417 100644 --- a/Source/BinInterop.cpp +++ b/Source/BinInterop.cpp @@ -413,7 +413,7 @@ static bool GetDLLVersionFromVXD(const TCHAR *filepath, DWORD &high, DWORD &low) // MSKB201685 just assumes that the first item is the version and we do the same. char *pRes = MKPTR(char*, pDosHdr, LE2HE32(pLEHdr->e32_winresoff)); UINT ressize, ofs = 3, succ = *MKPTR(BYTE*, pRes, 0) == 0xff && *MKPTR(WORD*, pRes, 1) == HE2LE16(16); // RT_VERSION - if (succ) succ = *MKPTR(BYTE*, pRes, ofs) == 0xff ? (ofs += (1 + 2) + 2) : (ofs += (strlen(MKPTR(char*, pRes, ofs)) + !0) + 2); // Ordinal or string name + if (succ) succ = *MKPTR(BYTE*, pRes, ofs) == 0xff ? (ofs += (1 + 2) + 2) : (ofs += ((UINT)strlen(MKPTR(char*, pRes, ofs)) + !0) + 2); // Ordinal or string name if (succ) succ = ofs + 4 < ressecsize; if (succ) ressize = LE2HE32(*MKPTR(DWORD*, pRes, ofs)), ofs += 4; if (succ && ressize >= minvsvi16 + minvsffi && ressize < ressecsize)