Commit 84c28fc1 authored by Alexander Frink's avatar Alexander Frink Committed by Alexandre Julliard

Prevent possible NULL pointer access.

parent 70cc169d
......@@ -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;
......
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