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
7226d7f5
Commit
7226d7f5
authored
Aug 12, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp/tests: Fix a minor leak on error path (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
898db924
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
media.c
dlls/wmp/tests/media.c
+2
-1
No files found.
dlls/wmp/tests/media.c
View file @
7226d7f5
...
...
@@ -309,7 +309,7 @@ static BOOL test_wmp(void)
LONG
progress
;
IWMPMedia
*
media
;
static
const
WCHAR
currentPosition
[]
=
{
'c'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'P'
,
'o'
,
's'
,
'i'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
BSTR
bstrcurrentPosition
=
SysAllocString
(
currentPosition
)
;
BSTR
bstrcurrentPosition
;
hres
=
CoCreateInstance
(
&
CLSID_WindowsMediaPlayer
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IOleObject
,
(
void
**
)
&
oleobj
);
if
(
hres
==
REGDB_E_CLASSNOTREG
)
{
...
...
@@ -344,6 +344,7 @@ static BOOL test_wmp(void)
ok
(
hres
==
S_OK
,
"get_controls failed: %08x
\n
"
,
hres
);
ok
(
controls
!=
NULL
,
"controls = NULL
\n
"
);
bstrcurrentPosition
=
SysAllocString
(
currentPosition
);
hres
=
IWMPControls_get_isAvailable
(
controls
,
bstrcurrentPosition
,
&
vbool
);
ok
(
hres
==
S_OK
,
"IWMPControls_get_isAvailable failed: %08x
\n
"
,
hres
);
ok
(
vbool
==
VARIANT_FALSE
,
"unexpected value
\n
"
);
...
...
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