mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
kernel32: [Read/Write]PrivateProfile functions accept a NULL filename.
This commit is contained in:
parent
f537eb241a
commit
7bffb5e42d
1 changed files with 3 additions and 3 deletions
|
@ -734,6 +734,9 @@ static BOOL PROFILE_Open( LPCWSTR filename )
|
|||
|
||||
GetWindowsDirectoryW( windirW, MAX_PATH );
|
||||
|
||||
if (!filename)
|
||||
filename = wininiW;
|
||||
|
||||
if ((RtlDetermineDosPathNameType_U(filename) == RELATIVE_PATH) &&
|
||||
!strchrW(filename, '\\') && !strchrW(filename, '/'))
|
||||
{
|
||||
|
@ -1072,9 +1075,6 @@ static int PROFILE_GetPrivateProfileString( LPCWSTR section, LPCWSTR entry,
|
|||
int ret;
|
||||
LPCWSTR pDefVal = NULL;
|
||||
|
||||
if (!filename)
|
||||
filename = wininiW;
|
||||
|
||||
TRACE("%s,%s,%s,%p,%u,%s\n", debugstr_w(section), debugstr_w(entry),
|
||||
debugstr_w(def_val), buffer, len, debugstr_w(filename));
|
||||
|
||||
|
|
Loading…
Reference in a new issue