krnl386.exe: Return the default value if the section wasn't found in GetPrivateProfileString16().

Using GetPrivateProfileStringA() for removing trailing spaces etc. This
restores behaviour from before 86c6021c71.
This commit is contained in:
Henri Verbeet 2010-11-04 10:37:33 +01:00 committed by Alexandre Julliard
parent 41a76b958d
commit c4c091d4b7
1 changed files with 1 additions and 2 deletions

View File

@ -555,9 +555,8 @@ 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;
return GetPrivateProfileStringA( section, entry, def_val, buffer, len, filename );
}
if (ret != size - 2) break;
/* overflow, try again */