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
6e45c171
Commit
6e45c171
authored
Nov 05, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl/tests: Put test_input on the stack in the main_test function.
parent
c23c72fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+5
-9
No files found.
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
6e45c171
...
...
@@ -44,7 +44,6 @@
#include "ddk/hidsdi.h"
#include "ddk/hidpi.h"
#include "wine/test.h"
#include "wine/heap.h"
#include "wine/mssign.h"
#include "driver.h"
...
...
@@ -397,21 +396,18 @@ static ULONG64 modified_value;
static
void
main_test
(
void
)
{
struct
main_test_input
*
test_input
;
struct
main_test_input
test_input
;
DWORD
size
;
BOOL
res
;
test_input
=
heap_alloc
(
sizeof
(
*
test_input
)
);
test_input
->
process_id
=
GetCurrentProcessId
();
test_input
->
teststr_offset
=
(
SIZE_T
)((
BYTE
*
)
&
teststr
-
(
BYTE
*
)
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
);
test_input
->
modified_value
=
&
modified_value
;
test_input
.
process_id
=
GetCurrentProcessId
();
test_input
.
teststr_offset
=
(
SIZE_T
)((
BYTE
*
)
&
teststr
-
(
BYTE
*
)
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
);
test_input
.
modified_value
=
&
modified_value
;
modified_value
=
0
;
res
=
DeviceIoControl
(
device
,
IOCTL_WINETEST_MAIN_TEST
,
test_input
,
sizeof
(
*
test_input
),
NULL
,
0
,
&
size
,
NULL
);
res
=
DeviceIoControl
(
device
,
IOCTL_WINETEST_MAIN_TEST
,
&
test_input
,
sizeof
(
test_input
),
NULL
,
0
,
&
size
,
NULL
);
ok
(
res
,
"DeviceIoControl failed: %lu
\n
"
,
GetLastError
());
ok
(
!
size
,
"got size %lu
\n
"
,
size
);
heap_free
(
test_input
);
}
static
void
test_basic_ioctl
(
void
)
...
...
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