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
1627377d
Commit
1627377d
authored
Oct 08, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Fix remaining failure on Win9x/NT4.
parent
52e64b15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
main.c
dlls/inetmib1/tests/main.c
+9
-7
No files found.
dlls/inetmib1/tests/main.c
View file @
1627377d
...
...
@@ -66,7 +66,7 @@ static void testQuery(void)
UINT
mib2IpAddr
[]
=
{
1
,
3
,
6
,
1
,
2
,
1
,
4
,
20
,
1
,
1
};
UINT
mib2IpRouteTable
[]
=
{
1
,
3
,
6
,
1
,
2
,
1
,
4
,
21
,
1
,
1
};
UINT
mib2UdpTable
[]
=
{
1
,
3
,
6
,
1
,
2
,
1
,
7
,
5
,
1
,
1
};
SnmpVarBind
vars
[
3
],
vars2
[
3
];
SnmpVarBind
vars
[
3
],
vars2
[
3
]
,
vars3
[
3
]
;
UINT
entry
;
pQuery
=
(
void
*
)
GetProcAddress
(
inetmib1
,
"SnmpExtensionQuery"
);
...
...
@@ -247,8 +247,8 @@ static void testQuery(void)
SnmpUtilVarBindFree
(
&
vars2
[
2
]);
/* Even though SnmpExtensionInit says this DLL supports the MIB2 system
* variables,
the first variable it returns a value for is the firs
t
* interface.
* variables,
on recent systems (at least Win2k) the first variable i
t
*
returns a value for is the first
interface.
*/
vars
[
0
].
name
.
idLength
=
sizeof
(
mib2System
)
/
sizeof
(
mib2System
[
0
]);
vars
[
0
].
name
.
ids
=
mib2System
;
...
...
@@ -263,10 +263,12 @@ static void testQuery(void)
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
vars
[
0
].
name
.
idLength
=
sizeof
(
mib2If
)
/
sizeof
(
mib2If
[
0
]);
vars
[
0
].
name
.
ids
=
mib2If
;
ok
(
!
SnmpUtilOidNCmp
(
&
vars2
[
0
].
name
,
&
vars
[
0
].
name
,
vars
[
0
].
name
.
idLength
),
"expected 1.3.6.1.2.1.2, got %s
\n
"
,
SnmpUtilOidToA
(
&
vars2
[
0
].
name
));
vars3
[
0
].
name
.
idLength
=
sizeof
(
mib2If
)
/
sizeof
(
mib2If
[
0
]);
vars3
[
0
].
name
.
ids
=
mib2If
;
ok
(
!
SnmpUtilOidNCmp
(
&
vars2
[
0
].
name
,
&
vars
[
0
].
name
,
vars
[
0
].
name
.
idLength
)
||
!
SnmpUtilOidNCmp
(
&
vars2
[
0
].
name
,
&
vars3
[
0
].
name
,
vars3
[
0
].
name
.
idLength
),
"expected 1.3.6.1.2.1.1 or 1.3.6.1.2.1.2, got %s
\n
"
,
SnmpUtilOidToA
(
&
vars2
[
0
].
name
));
SnmpUtilVarBindFree
(
&
vars2
[
0
]);
/* Check the type and OIDs of the IP address table */
...
...
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