Commit 935e06c5 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Null-terminate the buffer also on error in GetPrivateProfileString16.

parent 03e9fbb5
......@@ -555,6 +555,7 @@ INT16 WINAPI GetPrivateProfileString16( LPCSTR section, LPCSTR entry,
ret = GetPrivateProfileSectionA( section, data, size, filename );
if (!ret)
{
if (len) *buffer = 0;
HeapFree( GetProcessHeap(), 0, data );
return 0;
}
......
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