reslen could be used uninitialised in GetFileResource32 (fixes some

strange VerQueryValue crashes).
This commit is contained in:
Marcus Meissner 1999-02-02 10:39:33 +00:00 committed by Alexandre Julliard
parent 6563cc8a23
commit e233d1ae3f
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ DWORD WINAPI GetFileResource32( LPCSTR lpszFileName,
BOOL32 retv = FALSE;
HFILE32 lzfd;
OFSTRUCT ofs;
DWORD reslen;
DWORD reslen = dwResLen;
TRACE( ver, "(%s,type=0x%lx,id=0x%lx,off=%ld,len=%ld,data=%p)\n",
debugstr_a(lpszFileName), (LONG)lpszResType, (LONG)lpszResId,