Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
741b8f95
Commit
741b8f95
authored
Dec 31, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix a test failure on Windows 10.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
456392f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
virtual.c
dlls/kernel32/tests/virtual.c
+10
-4
No files found.
dlls/kernel32/tests/virtual.c
View file @
741b8f95
...
...
@@ -122,8 +122,11 @@ static void test_VirtualAllocEx(void)
ok
(
bytes_written
==
0
,
"%lu bytes written
\n
"
,
bytes_written
);
b
=
ReadProcessMemory
(
hProcess
,
addr1
,
src
,
alloc_size
,
&
bytes_read
);
ok
(
!
b
,
"ReadProcessMemory succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_NOACCESS
,
"wrong error %u
\n
"
,
GetLastError
()
);
ok
(
bytes_read
==
0
,
"%lu bytes written
\n
"
,
bytes_read
);
ok
(
GetLastError
()
==
ERROR_NOACCESS
||
GetLastError
()
==
ERROR_PARTIAL_COPY
,
/* win10 v1607+ */
"wrong error %u
\n
"
,
GetLastError
()
);
if
(
GetLastError
()
==
ERROR_NOACCESS
)
ok
(
bytes_read
==
0
,
"%lu bytes written
\n
"
,
bytes_read
);
b
=
VirtualProtect
(
src
,
0x2000
,
PAGE_NOACCESS
,
&
old_prot
);
ok
(
b
,
"VirtualProtect failed error %u
\n
"
,
GetLastError
()
);
...
...
@@ -135,8 +138,11 @@ static void test_VirtualAllocEx(void)
ok
(
bytes_written
==
0
,
"%lu bytes written
\n
"
,
bytes_written
);
b
=
ReadProcessMemory
(
hProcess
,
addr1
,
src
,
alloc_size
,
&
bytes_read
);
ok
(
!
b
,
"ReadProcessMemory succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_NOACCESS
,
"wrong error %u
\n
"
,
GetLastError
()
);
ok
(
bytes_read
==
0
,
"%lu bytes written
\n
"
,
bytes_read
);
ok
(
GetLastError
()
==
ERROR_NOACCESS
||
GetLastError
()
==
ERROR_PARTIAL_COPY
,
/* win10 v1607+ */
"wrong error %u
\n
"
,
GetLastError
()
);
if
(
GetLastError
()
==
ERROR_NOACCESS
)
ok
(
bytes_read
==
0
,
"%lu bytes written
\n
"
,
bytes_read
);
b
=
pVirtualFreeEx
(
hProcess
,
addr1
,
0
,
MEM_RELEASE
);
ok
(
b
!=
0
,
"VirtualFreeEx, error %u
\n
"
,
GetLastError
());
...
...
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