version: VerQueryValueA/W NULL pointer check.
This commit is contained in:
parent
6f3e8a2fcf
commit
e1347ecdc5
|
@ -771,6 +771,9 @@ BOOL WINAPI VerQueryValueA( LPCVOID pBlock, LPCSTR lpSubBlock,
|
||||||
TRACE("(%p,%s,%p,%p)\n",
|
TRACE("(%p,%s,%p,%p)\n",
|
||||||
pBlock, debugstr_a(lpSubBlock), lplpBuffer, puLen );
|
pBlock, debugstr_a(lpSubBlock), lplpBuffer, puLen );
|
||||||
|
|
||||||
|
if (!pBlock)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if ( !VersionInfoIs16( info ) )
|
if ( !VersionInfoIs16( info ) )
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
@ -823,6 +826,9 @@ BOOL WINAPI VerQueryValueW( LPCVOID pBlock, LPCWSTR lpSubBlock,
|
||||||
TRACE("(%p,%s,%p,%p)\n",
|
TRACE("(%p,%s,%p,%p)\n",
|
||||||
pBlock, debugstr_w(lpSubBlock), lplpBuffer, puLen );
|
pBlock, debugstr_w(lpSubBlock), lplpBuffer, puLen );
|
||||||
|
|
||||||
|
if (!pBlock)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if ( VersionInfoIs16( info ) )
|
if ( VersionInfoIs16( info ) )
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
Loading…
Reference in New Issue