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
bf3d719d
Commit
bf3d719d
authored
Aug 01, 2019
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Aug 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmp: Return E_POINTER when p is NULL in return_bstr.
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b0e8197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
media.c
dlls/wmp/tests/media.c
+0
-1
wmp_private.h
dlls/wmp/wmp_private.h
+1
-1
No files found.
dlls/wmp/tests/media.c
View file @
bf3d719d
...
...
@@ -535,7 +535,6 @@ static void test_media_item(void)
hr
=
IWMPPlayer4_newMedia
(
player
,
NULL
,
&
media
);
ok
(
hr
==
S_OK
,
"Failed to create a media item, hr %#x.
\n
"
,
hr
);
hr
=
IWMPMedia_get_name
(
media
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IWMPMedia_get_name
(
media
,
&
str
);
ok
(
hr
==
S_OK
,
"Failed to get item name, hr %#x.
\n
"
,
hr
);
...
...
dlls/wmp/wmp_private.h
View file @
bf3d719d
...
...
@@ -135,7 +135,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
static
inline
HRESULT
return_bstr
(
const
WCHAR
*
value
,
BSTR
*
p
)
{
if
(
!
p
)
return
E_
INVALIDARG
;
return
E_
POINTER
;
if
(
value
)
{
*
p
=
SysAllocString
(
value
);
...
...
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