Henri Verbeet : krnl386.exe: Return the default value if the section wasn' t found in GetPrivateProfileString16().
Alexandre Julliard
julliard at winehq.org
Thu Dec 2 16:30:53 CST 2010
Module: wine
Branch: stable
Commit: 59129ad1cd740b3575c593b6bf0ca5f97f38c0fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59129ad1cd740b3575c593b6bf0ca5f97f38c0fb
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Nov 4 10:37:33 2010 +0100
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 86c6021c71a563af88c1a8cc23ea489e92c8ca70.
(cherry picked from commit c4c091d4b7c67487fbd332e7e606ec272d232f4f)
---
dlls/krnl386.exe16/file.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/krnl386.exe16/file.c b/dlls/krnl386.exe16/file.c
index 507b28d..0a1098f 100644
--- a/dlls/krnl386.exe16/file.c
+++ b/dlls/krnl386.exe16/file.c
@@ -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 */
More information about the wine-cvs
mailing list