kernel32: [Read/Write]PrivateProfile functions accept a NULL filename.
This commit is contained in:
parent
f537eb241a
commit
7bffb5e42d
|
@ -734,6 +734,9 @@ static BOOL PROFILE_Open( LPCWSTR filename )
|
||||||
|
|
||||||
GetWindowsDirectoryW( windirW, MAX_PATH );
|
GetWindowsDirectoryW( windirW, MAX_PATH );
|
||||||
|
|
||||||
|
if (!filename)
|
||||||
|
filename = wininiW;
|
||||||
|
|
||||||
if ((RtlDetermineDosPathNameType_U(filename) == RELATIVE_PATH) &&
|
if ((RtlDetermineDosPathNameType_U(filename) == RELATIVE_PATH) &&
|
||||||
!strchrW(filename, '\\') && !strchrW(filename, '/'))
|
!strchrW(filename, '\\') && !strchrW(filename, '/'))
|
||||||
{
|
{
|
||||||
|
@ -1072,9 +1075,6 @@ static int PROFILE_GetPrivateProfileString( LPCWSTR section, LPCWSTR entry,
|
||||||
int ret;
|
int ret;
|
||||||
LPCWSTR pDefVal = NULL;
|
LPCWSTR pDefVal = NULL;
|
||||||
|
|
||||||
if (!filename)
|
|
||||||
filename = wininiW;
|
|
||||||
|
|
||||||
TRACE("%s,%s,%s,%p,%u,%s\n", debugstr_w(section), debugstr_w(entry),
|
TRACE("%s,%s,%s,%p,%u,%s\n", debugstr_w(section), debugstr_w(entry),
|
||||||
debugstr_w(def_val), buffer, len, debugstr_w(filename));
|
debugstr_w(def_val), buffer, len, debugstr_w(filename));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue