Prevent possible NULL pointer access.
This commit is contained in:
parent
70cc169d1c
commit
84c28fc1b1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue