Commit e1347ecd authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

version: VerQueryValueA/W NULL pointer check.

parent 6f3e8a2f
......@@ -771,6 +771,9 @@ BOOL WINAPI VerQueryValueA( LPCVOID pBlock, LPCSTR lpSubBlock,
TRACE("(%p,%s,%p,%p)\n",
pBlock, debugstr_a(lpSubBlock), lplpBuffer, puLen );
if (!pBlock)
return FALSE;
if ( !VersionInfoIs16( info ) )
{
BOOL ret;
......@@ -823,6 +826,9 @@ BOOL WINAPI VerQueryValueW( LPCVOID pBlock, LPCWSTR lpSubBlock,
TRACE("(%p,%s,%p,%p)\n",
pBlock, debugstr_w(lpSubBlock), lplpBuffer, puLen );
if (!pBlock)
return FALSE;
if ( VersionInfoIs16( info ) )
{
BOOL ret;
......
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