kernel32: Null-terminate the buffer also on error in GetPrivateProfileString16.
This commit is contained in:
parent
03e9fbb515
commit
935e06c5c3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue