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
ef18fb9a
Commit
ef18fb9a
authored
Sep 22, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndis.sys/tests: Test passing a bogus OID to IOCTL_NDIS_QUERY_GLOBAL_STATS.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cac8c971
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ndis.c
dlls/ndis.sys/tests/ndis.c
+9
-0
No files found.
dlls/ndis.sys/tests/ndis.c
View file @
ef18fb9a
...
@@ -58,6 +58,15 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row)
...
@@ -58,6 +58,15 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row)
return
;
return
;
}
}
oid
=
0xdeadbeef
;
iosb
.
Status
=
0xdeadbeef
;
iosb
.
Information
=
0xdeadbeef
;
status
=
NtDeviceIoControlFile
(
netdev
,
NULL
,
NULL
,
NULL
,
&
iosb
,
IOCTL_NDIS_QUERY_GLOBAL_STATS
,
&
oid
,
sizeof
(
oid
),
&
medium
,
sizeof
(
medium
)
);
todo_wine
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"got status %#x
\n
"
,
status
);
ok
(
iosb
.
Status
==
0xdeadbeef
,
"got %#x
\n
"
,
iosb
.
Status
);
ok
(
iosb
.
Information
==
0xdeadbeef
,
"got size %#Ix
\n
"
,
iosb
.
Information
);
oid
=
OID_GEN_MEDIA_SUPPORTED
;
oid
=
OID_GEN_MEDIA_SUPPORTED
;
ret
=
DeviceIoControl
(
netdev
,
IOCTL_NDIS_QUERY_GLOBAL_STATS
,
ret
=
DeviceIoControl
(
netdev
,
IOCTL_NDIS_QUERY_GLOBAL_STATS
,
&
oid
,
sizeof
(
oid
),
&
medium
,
sizeof
(
medium
),
&
size
,
NULL
);
&
oid
,
sizeof
(
oid
),
&
medium
,
sizeof
(
medium
),
&
size
,
NULL
);
...
...
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