mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
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",
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user