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
864919a2
Commit
864919a2
authored
Feb 13, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test that copy-on-write file mapping is not modifying the file.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
43a4401e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
virtual.c
dlls/kernel32/tests/virtual.c
+8
-0
No files found.
dlls/kernel32/tests/virtual.c
View file @
864919a2
...
...
@@ -4236,6 +4236,7 @@ static void test_mappings(void)
{
char
temp_path
[
MAX_PATH
];
char
file_name
[
MAX_PATH
];
DWORD
data
,
num_bytes
;
HANDLE
hfile
;
GetTempPathA
(
MAX_PATH
,
temp_path
);
...
...
@@ -4248,6 +4249,13 @@ static void test_mappings(void)
test_mapping
(
hfile
,
SEC_COMMIT
,
FALSE
);
/* test that file was not modified */
SetFilePointer
(
hfile
,
0
,
NULL
,
FILE_BEGIN
);
ok
(
ReadFile
(
hfile
,
&
data
,
sizeof
(
data
),
&
num_bytes
,
NULL
),
"ReadFile failed
\n
"
);
ok
(
num_bytes
==
sizeof
(
data
),
"num_bytes = %d
\n
"
,
num_bytes
);
todo_wine
ok
(
!
data
,
"data = %x
\n
"
,
data
);
CloseHandle
(
hfile
);
hfile
=
CreateFileA
(
file_name
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
...
...
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