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
2bec828a
Commit
2bec828a
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: Return STATUS_INVALID_PARAMETER for unknown OIDs.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ff664bf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
main.c
dlls/ndis.sys/main.c
+1
-1
ndis.c
dlls/ndis.sys/tests/ndis.c
+1
-1
No files found.
dlls/ndis.sys/main.c
View file @
2bec828a
...
...
@@ -89,7 +89,7 @@ static void query_global_stats(IRP *irp, const MIB_IF_ROW2 *netdev)
}
default:
FIXME
(
"Unsupported OID %x
\n
"
,
oid
);
irp
->
IoStatus
.
u
.
Status
=
STATUS_
NOT_SUPPORTED
;
irp
->
IoStatus
.
u
.
Status
=
STATUS_
INVALID_PARAMETER
;
break
;
}
}
...
...
dlls/ndis.sys/tests/ndis.c
View file @
2bec828a
...
...
@@ -63,7 +63,7 @@ static void test_device(const WCHAR *service_name, const MIB_IF_ROW2 *row)
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
(
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
);
...
...
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