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
25ed1d9e
Commit
25ed1d9e
authored
Apr 20, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid arithmetic on pointer to stack variable.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b485dbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
virtual.c
dlls/kernel32/tests/virtual.c
+2
-2
No files found.
dlls/kernel32/tests/virtual.c
View file @
25ed1d9e
...
...
@@ -2865,8 +2865,8 @@ static void test_atl_thunk_emulation( ULONG dep_flags )
success
=
VirtualProtect
(
base
,
size
,
PAGE_READWRITE
,
&
old_prot
);
ok
(
success
,
"VirtualProtect failed %u
\n
"
,
GetLastError
()
);
re
t
=
(
DWORD_PTR
)
atl5_test_func
;
ret
=
call_proc_excpt
(
(
void
*
)
base
,
&
ret
-
1
);
re
sults
[
1
]
=
atl5_test_func
;
ret
=
call_proc_excpt
(
(
void
*
)
base
,
results
);
/* FIXME: We don't check the content of the registers EAX/ECX yet */
ok
(
ret
==
44
,
"call returned wrong result, expected 44, got %d
\n
"
,
ret
);
ok
(
num_guard_page_calls
==
0
,
"expected no STATUS_GUARD_PAGE_VIOLATION exception, got %d exceptions
\n
"
,
num_guard_page_calls
);
...
...
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