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
487dc6b6
Commit
487dc6b6
authored
Dec 16, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix memory leaks in the tests.
Found by Valgrind.
parent
ffbc3465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vartype.c
dlls/oleaut32/tests/vartype.c
+4
-1
No files found.
dlls/oleaut32/tests/vartype.c
View file @
487dc6b6
...
...
@@ -3484,6 +3484,7 @@ static void test_VarDateChangeTypeEx(void)
(
!
lstrcmpW
(
V_BSTR
(
&
vDst
),
sz25570
)
||
!
lstrcmpW
(
V_BSTR
(
&
vDst
),
sz25570_2
)),
"hres=0x%X, type=%d (should be VT_BSTR), *bstr=%s
\n
"
,
hres
,
V_VT
(
&
vDst
),
V_BSTR
(
&
vDst
)
?
wtoascii
(
V_BSTR
(
&
vDst
))
:
"?"
);
VariantClear
(
&
vDst
);
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
if
(
HAVE_OLEAUT32_LOCALES
)
...
...
@@ -3492,6 +3493,7 @@ static void test_VarDateChangeTypeEx(void)
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
VT_BSTR
&&
V_BSTR
(
&
vDst
)
&&
!
lstrcmpW
(
V_BSTR
(
&
vDst
),
sz25570Nls
),
"hres=0x%X, type=%d (should be VT_BSTR), *bstr=%s
\n
"
,
hres
,
V_VT
(
&
vDst
),
V_BSTR
(
&
vDst
)
?
wtoascii
(
V_BSTR
(
&
vDst
))
:
"?"
);
VariantClear
(
&
vDst
);
}
}
...
...
@@ -4780,7 +4782,8 @@ static void test_VarBoolCopy(void)
ok(hres == S_OK && V_VT(&vDst) == VT_BSTR && \
V_BSTR(&vDst) && !memcmp(V_BSTR(&vDst), str, sizeof(str)), \
"hres=0x%X, type=%d (should be VT_BSTR), *bstr='%c'\n", \
hres, V_VT(&vDst), V_BSTR(&vDst) ? *V_BSTR(&vDst) : '?')
hres, V_VT(&vDst), V_BSTR(&vDst) ? *V_BSTR(&vDst) : '?'); \
VariantClear(&vDst)
static
void
test_VarBoolChangeTypeEx
(
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