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
71bd7fdf
Commit
71bd7fdf
authored
Jan 23, 2013
by
Ludger Sprenker
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IPropertyBag2::CountProperties.
parent
d4b1db71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
propertybag.c
dlls/windowscodecs/propertybag.c
+12
-2
propertybag.c
dlls/windowscodecs/tests/propertybag.c
+0
-2
No files found.
dlls/windowscodecs/propertybag.c
View file @
71bd7fdf
...
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
typedef
struct
PropertyBag
{
IPropertyBag2
IPropertyBag2_iface
;
LONG
ref
;
UINT
prop_count
;
}
PropertyBag
;
static
inline
PropertyBag
*
impl_from_IPropertyBag2
(
IPropertyBag2
*
iface
)
...
...
@@ -108,8 +109,16 @@ static HRESULT WINAPI PropertyBag_Write(IPropertyBag2 *iface, ULONG cProperties,
static
HRESULT
WINAPI
PropertyBag_CountProperties
(
IPropertyBag2
*
iface
,
ULONG
*
pcProperties
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
iface
,
pcProperties
);
return
E_NOTIMPL
;
PropertyBag
*
This
=
impl_from_IPropertyBag2
(
iface
);
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pcProperties
);
if
(
!
pcProperties
)
return
E_INVALIDARG
;
*
pcProperties
=
This
->
prop_count
;
return
S_OK
;
}
static
HRESULT
WINAPI
PropertyBag_GetPropertyInfo
(
IPropertyBag2
*
iface
,
ULONG
iProperty
,
...
...
@@ -147,6 +156,7 @@ HRESULT CreatePropertyBag2(PROPBAG2 *options, UINT count,
This
->
IPropertyBag2_iface
.
lpVtbl
=
&
PropertyBag_Vtbl
;
This
->
ref
=
1
;
This
->
prop_count
=
count
;
*
ppPropertyBag2
=
&
This
->
IPropertyBag2_iface
;
...
...
dlls/windowscodecs/tests/propertybag.c
View file @
71bd7fdf
...
...
@@ -237,7 +237,6 @@ static void test_empty_propertybag(void)
ok
(
hr
==
S_OK
,
"Creating EncoderPropertyBag failed, hr=%x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
todo_wine
test_propertybag_countproperties
(
property
,
0
);
todo_wine
...
...
@@ -267,7 +266,6 @@ static void test_filled_propertybag(void)
ok
(
hr
==
S_OK
,
"Creating EncoderPropertyBag failed, hr=%x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
todo_wine
test_propertybag_countproperties
(
property
,
2
);
todo_wine
...
...
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