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
88472df4
Commit
88472df4
authored
Jan 07, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fix some leaks in safearray tests.
parent
b116175d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
safearray.c
dlls/oleaut32/tests/safearray.c
+3
-0
No files found.
dlls/oleaut32/tests/safearray.c
View file @
88472df4
...
...
@@ -1321,6 +1321,7 @@ static void test_SafeArrayCopyData(void)
ok
(
SafeArrayGetElemsize
(
sa
)
==
SafeArrayGetElemsize
(
sacopy
),
"elemsize wrong
\n
"
);
ok
(
SafeArrayGetDim
(
sa
)
==
SafeArrayGetDim
(
sacopy
),
"dimensions wrong
\n
"
);
ok
(
!
memcmp
(
sa
->
pvData
,
sacopy
->
pvData
,
size
*
sizeof
(
int
)),
"compared different
\n
"
);
SafeArrayDestroy
(
sacopy
);
}
SafeArrayDestroy
(
sa
);
...
...
@@ -1548,6 +1549,7 @@ static void test_SafeArrayCopy(void)
hres
=
SafeArrayCopy
(
sa
,
&
sa2
);
ok
(
hres
==
S_OK
,
"SafeArrayCopy failed with error 0x%08x
\n
"
,
hres
);
SafeArrayDestroy
(
sa2
);
SafeArrayDestroy
(
sa
);
}
...
...
@@ -1652,6 +1654,7 @@ static void test_SafeArrayChangeTypeEx(void)
hres
=
VariantChangeTypeEx
(
&
v2
,
&
v
,
0
,
0
,
VT_ARRAY
|
VT_UI1
);
ok
(
hres
==
S_OK
,
"CTE VT_ARRAY|VT_UI1->VT_ARRAY|VT_UI1 returned %x
\n
"
,
hres
);
SafeArrayDestroy
(
sa
);
VariantClear
(
&
v2
);
}
/* NULL/EMPTY */
...
...
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