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:
parent
41a76b958d
commit
c4c091d4b7
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue