kernel32: Check if buffer is NULL before derefencing it (Coverity).

This commit is contained in:
Marcus Meissner 2010-01-03 14:46:07 +01:00 committed by Alexandre Julliard
parent b53b7f1ec3
commit a55399f5b6
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ INT WINAPI GetPrivateProfileStringA( LPCSTR section, LPCSTR entry,
retW = GetPrivateProfileStringW( sectionW.Buffer, entryW.Buffer,
def_valW.Buffer, bufferW, len,
filenameW.Buffer);
if (len)
if (len && buffer)
{
if (retW)
{