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
c091f9b7
Commit
c091f9b7
authored
Nov 26, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Do not make a copy when returning GUID attributes (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
14e074b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
main.c
dlls/mfplat/main.c
+16
-7
No files found.
dlls/mfplat/main.c
View file @
c091f9b7
...
...
@@ -1349,14 +1349,23 @@ HRESULT attributes_GetDouble(struct attributes *attributes, REFGUID key, double
HRESULT
attributes_GetGUID
(
struct
attributes
*
attributes
,
REFGUID
key
,
GUID
*
value
)
{
PROPVARIANT
attrval
;
HRESULT
hr
;
struct
attribute
*
attribute
;
HRESULT
hr
=
S_OK
;
PropVariantInit
(
&
attrval
);
attrval
.
vt
=
VT_CLSID
;
hr
=
attributes_get_item
(
attributes
,
key
,
&
attrval
);
if
(
SUCCEEDED
(
hr
))
*
value
=
*
attrval
.
u
.
puuid
;
EnterCriticalSection
(
&
attributes
->
cs
);
attribute
=
attributes_find_item
(
attributes
,
key
,
NULL
);
if
(
attribute
)
{
if
(
attribute
->
value
.
vt
==
MF_ATTRIBUTE_GUID
)
*
value
=
*
attribute
->
value
.
u
.
puuid
;
else
hr
=
MF_E_INVALIDTYPE
;
}
else
hr
=
MF_E_ATTRIBUTENOTFOUND
;
LeaveCriticalSection
(
&
attributes
->
cs
);
return
hr
;
}
...
...
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