Fixed some warnings
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6443 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
07183c43a9
commit
a7261be70c
7 changed files with 40 additions and 50 deletions
|
@ -131,9 +131,8 @@ void CResourceVersionInfo::SetProductVersion(int HighPart, int LowPart)
|
|||
int GetVersionHeader (LPSTR &p, WORD &wLength, WORD &wValueLength, WORD &wType)
|
||||
{
|
||||
WINWCHAR *szKey;
|
||||
char * baseP;
|
||||
|
||||
baseP = p;
|
||||
char *baseP = p;
|
||||
|
||||
wLength = *(WORD*)p;
|
||||
p += sizeof(WORD);
|
||||
wValueLength = *(WORD*)p;
|
||||
|
@ -142,9 +141,9 @@ int GetVersionHeader (LPSTR &p, WORD &wLength, WORD &wValueLength, WORD &wType)
|
|||
p += sizeof(WORD);
|
||||
szKey = (WINWCHAR*)p;
|
||||
p += (WinWStrLen(szKey) + 1) * sizeof (WINWCHAR);
|
||||
while ( ((ULONG_PTR)p % 4) != 0 )
|
||||
p++;
|
||||
return p - baseP;
|
||||
while ( ((ULONG_PTR)p % 4) != 0 ) p++;
|
||||
|
||||
return (int)(p - baseP);
|
||||
}
|
||||
|
||||
DWORD ZEROS = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue