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
42aa4e46
Commit
42aa4e46
authored
Nov 11, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmpapi: Make a test pass on Vista.
parent
9a51ac72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
util.c
dlls/snmpapi/tests/util.c
+12
-2
No files found.
dlls/snmpapi/tests/util.c
View file @
42aa4e46
...
...
@@ -352,11 +352,19 @@ static void test_SnmpUtilOidCmp(void)
static
void
test_SnmpUtilOidAppend
(
void
)
{
INT
ret
;
static
UINT
ids1
[]
=
{
1
,
2
,
3
}
;
UINT
*
ids1
;
static
UINT
ids2
[]
=
{
4
,
5
,
6
};
static
AsnObjectIdentifier
oid1
=
{
3
,
ids1
}
;
static
AsnObjectIdentifier
oid1
;
static
AsnObjectIdentifier
oid2
=
{
3
,
ids2
};
ids1
=
HeapAlloc
(
GetProcessHeap
(),
0
,
3
*
sizeof
(
UINT
));
ids1
[
0
]
=
1
;
ids1
[
1
]
=
2
;
ids1
[
2
]
=
3
;
oid1
.
idLength
=
3
;
oid1
.
ids
=
ids1
;
ret
=
SnmpUtilOidAppend
(
NULL
,
NULL
);
ok
(
!
ret
,
"SnmpUtilOidAppend succeeded
\n
"
);
...
...
@@ -371,6 +379,8 @@ static void test_SnmpUtilOidAppend(void)
ok
(
oid1
.
idLength
==
6
,
"SnmpUtilOidAppend failed
\n
"
);
ok
(
!
memcmp
(
&
oid1
.
ids
[
3
],
ids2
,
3
*
sizeof
(
UINT
)),
"SnmpUtilOidAppend failed
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
ids1
);
}
static
void
test_SnmpUtilVarBindCpyFree
(
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