Make GCC happy

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7311 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-09-01 18:58:53 +00:00
parent 3a3d2202a7
commit 488ecccde5
7 changed files with 24 additions and 14 deletions

View file

@ -423,8 +423,9 @@ typedef struct tagMINI_IMAGE_VXD_HEADER {
static bool GetDLLVersionFromVXD(const TCHAR *filepath, DWORD &high, DWORD &low, bool Product)
{
bool found = false;
UINT fieldofs = Product ? 2 : 0;
FILEVIEW map;
char *filedata = create_file_view_readonly(filepath, map), fieldofs = Product ? 2 : 0;
char *filedata = create_file_view_readonly(filepath, map);
if (filedata)
{
PIMAGE_DOS_HEADER pDosHdr = (PIMAGE_DOS_HEADER) filedata;