Commit a55399f5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent b53b7f1e
......@@ -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)
{
......
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