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
29eace89
Commit
29eace89
authored
May 06, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fixed a couple of string leaks (Valgrind).
parent
9e576e10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
olefont.c
dlls/oleaut32/tests/olefont.c
+2
-0
vartest.c
dlls/oleaut32/tests/vartest.c
+6
-1
No files found.
dlls/oleaut32/tests/olefont.c
View file @
29eace89
...
...
@@ -412,10 +412,12 @@ static void test_font_events_disp(void)
IConnectionPoint_Release
(
pCP
);
fonteventsdisp_invoke_called
=
0
;
fonteventsdisp_invoke_arg0
=
NULL
;
hr
=
IFont_put_Bold
(
pFont
,
TRUE
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
fonteventsdisp_invoke_called
==
1
,
"IFontEventDisp::Invoke wasn't called once
\n
"
);
SysFreeString
(
fonteventsdisp_invoke_arg0
);
hr
=
IFont_QueryInterface
(
pFont
,
&
IID_IFontDisp
,
(
void
**
)
&
pFontDisp
);
EXPECT_HR
(
hr
,
S_OK
);
...
...
dlls/oleaut32/tests/vartest.c
View file @
29eace89
...
...
@@ -5611,6 +5611,7 @@ static void test_VarCat(void)
VARTYPE
leftvt
,
rightvt
,
resultvt
;
HRESULT
hres
;
HRESULT
expected_error_num
;
int
cmp
;
CHECKPTR
(
VarCat
);
...
...
@@ -5952,7 +5953,11 @@ static void test_VarCat(void)
V_BSTR
(
&
right
)
=
SysAllocStringLen
(
NULL
,
0
);
hres
=
pVarCat
(
&
left
,
&
right
,
&
result
);
ok
(
hres
==
S_OK
,
"VarCat failed: %08x
\n
"
,
hres
);
if
(
!
strcmp_wa
(
V_BSTR
(
&
result
),
"True"
))
{
VariantClear
(
&
right
);
cmp
=
strcmp_wa
(
V_BSTR
(
&
result
),
"True"
);
VariantClear
(
&
result
);
if
(
!
cmp
)
{
V_VT
(
&
right
)
=
VT_BOOL
;
V_BOOL
(
&
right
)
=
100
;
hres
=
pVarCat
(
&
left
,
&
right
,
&
result
);
...
...
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