Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a4e32688
Commit
a4e32688
authored
Mar 28, 2012
by
Bruno Jesus
Committed by
Alexandre Julliard
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Show that ini cache must not be used if file no longer exists.
parent
426535a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
profile.c
dlls/kernel32/tests/profile.c
+7
-0
No files found.
dlls/kernel32/tests/profile.c
View file @
a4e32688
...
...
@@ -500,6 +500,13 @@ static void test_profile_refresh(void)
/* This also deletes the file */
CloseHandle
(
h
);
/* 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
||
broken
(
res
==
0
&&
GetLastError
()
==
0xdeadbeef
),
/* Win9x, WinME */
"Got %d instead of 421
\n
"
,
res
);
}
static
void
create_test_file
(
LPCSTR
name
,
LPCSTR
data
,
DWORD
size
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment