kernel32: Check if buffer is NULL before derefencing it (Coverity).
This commit is contained in:
parent
b53b7f1ec3
commit
a55399f5b6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue