mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
kernel32: Avoid ini cache if file does not exist anymore.
This commit is contained in:
parent
a4e3268886
commit
40f0145d00
@ -817,10 +817,10 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
|
||||
CurProfile->LastWriteTime = LastWriteTime;
|
||||
}
|
||||
CloseHandle(hFile);
|
||||
return TRUE;
|
||||
}
|
||||
else TRACE("(%s): already opened, not yet created (mru=%d)\n",
|
||||
debugstr_w(buffer), i);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -504,7 +504,7 @@ static void test_profile_refresh(void)
|
||||
/* Cache must be invalidated if file no longer exists and default must be returned */
|
||||
SetLastError(0xdeadbeef);
|
||||
res = GetPrivateProfileInt(SECTION, KEY, 421, testfile);
|
||||
todo_wine ok( res == 421 ||
|
||||
ok( res == 421 ||
|
||||
broken(res == 0 && GetLastError() == 0xdeadbeef), /* Win9x, WinME */
|
||||
"Got %d instead of 421\n", res);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user