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
2ee3e807
Commit
2ee3e807
authored
Jan 25, 2013
by
Ludger Sprenker
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IPropertyBag2::Read.
parent
d27fe13f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
propertybag.c
dlls/windowscodecs/propertybag.c
+30
-2
propertybag.c
dlls/windowscodecs/tests/propertybag.c
+0
-1
No files found.
dlls/windowscodecs/propertybag.c
View file @
2ee3e807
...
...
@@ -128,8 +128,36 @@ static LONG find_item(PropertyBag *This, LPCOLESTR name)
static
HRESULT
WINAPI
PropertyBag_Read
(
IPropertyBag2
*
iface
,
ULONG
cProperties
,
PROPBAG2
*
pPropBag
,
IErrorLog
*
pErrLog
,
VARIANT
*
pvarValue
,
HRESULT
*
phrError
)
{
FIXME
(
"(%p,%u,%p,%p,%p,%p): stub
\n
"
,
iface
,
cProperties
,
pPropBag
,
pErrLog
,
pvarValue
,
phrError
);
return
E_NOTIMPL
;
HRESULT
res
=
S_OK
;
ULONG
i
;
PropertyBag
*
This
=
impl_from_IPropertyBag2
(
iface
);
TRACE
(
"(%p,%u,%p,%p,%p,%p)
\n
"
,
iface
,
cProperties
,
pPropBag
,
pErrLog
,
pvarValue
,
phrError
);
for
(
i
=
0
;
i
<
cProperties
;
i
++
)
{
LONG
idx
;
if
(
pPropBag
[
i
].
dwHint
&&
pPropBag
[
i
].
dwHint
<=
This
->
prop_count
)
idx
=
pPropBag
[
i
].
dwHint
-
1
;
else
idx
=
find_item
(
This
,
pPropBag
[
i
].
pstrName
);
if
(
idx
>
-
1
)
{
VariantInit
(
pvarValue
+
i
);
res
=
VariantCopy
(
pvarValue
+
i
,
This
->
values
+
idx
);
if
(
FAILED
(
res
))
break
;
phrError
[
i
]
=
res
;
}
else
{
res
=
E_FAIL
;
break
;
}
}
return
res
;
}
static
HRESULT
WINAPI
PropertyBag_Write
(
IPropertyBag2
*
iface
,
ULONG
cProperties
,
...
...
dlls/windowscodecs/tests/propertybag.c
View file @
2ee3e807
...
...
@@ -271,7 +271,6 @@ static void test_filled_propertybag(void)
test_propertybag_write
(
property
);
todo_wine
test_propertybag_read
(
property
);
IPropertyBag2_Release
(
property
);
...
...
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