kernel32: [Read/Write]PrivateProfile functions accept a NULL filename.

This commit is contained in:
Mike McCormack 2006-04-03 18:51:05 +09:00 committed by Alexandre Julliard
parent f537eb241a
commit 7bffb5e42d
1 changed files with 3 additions and 3 deletions

View File

@ -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));