Commit 7bffb5e4 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent f537eb24
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment