Prevent possible NULL pointer access.

This commit is contained in:
Alexander Frink 2000-05-11 00:04:36 +00:00 committed by Alexandre Julliard
parent 70cc169d1c
commit 84c28fc1b1
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ DWORD WINAPI VerQueryValue16( SEGPTR spvBlock, LPCSTR lpszSubBlock,
return FALSE;
}
*lpcb = buflen;
if (lpcb) *lpcb = buflen;
*lpspBuffer = (SEGPTR) ((char *) spvBlock + ((char *) buffer - (char *) lpvBlock));
return retv;