Commit 90a9698f authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ver: curdirlen and destdirlen are in&out parameters (Coverity).

parent d82de9b9
......@@ -494,11 +494,23 @@ DWORD WINAPI VerFindFile16( UINT16 flags, LPSTR lpszFilename,
LPSTR lpszDestDir, UINT16 *lpuDestDirLen )
{
UINT curDirLen, destDirLen;
DWORD retv = VerFindFileA( flags, lpszFilename, lpszWinDir, lpszAppDir,
lpszCurDir, &curDirLen, lpszDestDir, &destDirLen );
UINT *pcurDirLen = NULL, *pdestDirLen = NULL;
DWORD retv;
*lpuCurDirLen = (UINT16)curDirLen;
*lpuDestDirLen = (UINT16)destDirLen;
if (lpuCurDirLen) {
curDirLen = *lpuCurDirLen;
pcurDirLen = &curDirLen;
}
if (lpuDestDirLen) {
destDirLen = *lpuDestDirLen;
pdestDirLen = &destDirLen;
}
retv = VerFindFileA( flags, lpszFilename, lpszWinDir, lpszAppDir,
lpszCurDir, pcurDirLen, lpszDestDir, pdestDirLen );
if (lpuCurDirLen)
*lpuCurDirLen = (UINT16)curDirLen;
if (lpuDestDirLen)
*lpuDestDirLen = (UINT16)destDirLen;
return retv;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment