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
fb48a8f4
Commit
fb48a8f4
authored
Mar 23, 2018
by
André Hentschel
Committed by
Alexandre Julliard
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Add support for MibIfTableNormalWithoutStatistics in GetIfTable2Ex.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b943c791
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-1
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+7
-1
netioapi.h
include/netioapi.h
+2
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
fb48a8f4
...
...
@@ -1862,7 +1862,7 @@ DWORD WINAPI GetIfTable2Ex( MIB_IF_TABLE_LEVEL level, MIB_IF_TABLE2 **table )
TRACE
(
"level %u, table %p
\n
"
,
level
,
table
);
if
(
!
table
||
level
>
MibIfTable
Raw
)
if
(
!
table
||
level
>
MibIfTable
NormalWithoutStatistics
)
return
ERROR_INVALID_PARAMETER
;
if
(
level
!=
MibIfTableNormal
)
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
fb48a8f4
...
...
@@ -2009,7 +2009,13 @@ static void test_GetIfTable2Ex(void)
pFreeMibTable
(
table
);
table
=
NULL
;
ret
=
pGetIfTable2Ex
(
2
,
&
table
);
ret
=
pGetIfTable2Ex
(
MibIfTableNormalWithoutStatistics
,
&
table
);
ok
(
ret
==
NO_ERROR
||
broken
(
ret
==
ERROR_INVALID_PARAMETER
),
"got %u
\n
"
,
ret
);
ok
(
table
!=
NULL
||
broken
(
!
table
),
"table not set
\n
"
);
pFreeMibTable
(
table
);
table
=
NULL
;
ret
=
pGetIfTable2Ex
(
3
,
&
table
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
ret
);
ok
(
!
table
,
"table should not be set
\n
"
);
pFreeMibTable
(
table
);
...
...
include/netioapi.h
View file @
fb48a8f4
...
...
@@ -24,7 +24,8 @@
typedef
enum
_MIB_IF_TABLE_LEVEL
{
MibIfTableNormal
,
MibIfTableRaw
MibIfTableRaw
,
MibIfTableNormalWithoutStatistics
,
}
MIB_IF_TABLE_LEVEL
,
*
PMIB_IF_TABLE_LEVEL
;
typedef
enum
_MIB_NOTIFICATION_TYPE
...
...
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