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
This commit is contained in:
parent
7cdc656628
commit
961a651665
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue