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

This commit is contained in:
Alexandre Julliard 2009-11-16 11:36:08 +01:00
parent 03e9fbb515
commit 935e06c5c3

View file

@ -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;
}