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
2a320dbd
Commit
2a320dbd
authored
May 08, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Implement CompositeMonikerROTDataImpl_GetComparisonData.
parent
996b35f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
5 deletions
+86
-5
compositemoniker.c
dlls/ole32/compositemoniker.c
+86
-5
No files found.
dlls/ole32/compositemoniker.c
View file @
2a320dbd
...
...
@@ -1212,14 +1212,95 @@ static ULONG WINAPI CompositeMonikerROTDataImpl_Release(IROTData* iface)
}
/******************************************************************************
* CompositeMonikerIROTData_GetCompar
a
isonData
* CompositeMonikerIROTData_GetComparisonData
******************************************************************************/
static
HRESULT
WINAPI
CompositeMonikerROTDataImpl_GetCompar
a
isonData
(
IROTData
*
iface
,
CompositeMonikerROTDataImpl_GetComparisonData
(
IROTData
*
iface
,
BYTE
*
pbData
,
ULONG
cbMax
,
ULONG
*
pcbData
)
{
FIXME
(
"(),stub!
\n
"
);
return
E_NOTIMPL
;
IMoniker
*
This
=
impl_from_IROTData
(
iface
);
IEnumMoniker
*
pEnumMk
;
IMoniker
*
pmk
;
HRESULT
hr
;
TRACE
(
"(%p, %lu, %p)
\n
"
,
pbData
,
cbMax
,
pcbData
);
*
pcbData
=
sizeof
(
CLSID
);
hr
=
IMoniker_Enum
(
This
,
TRUE
,
&
pEnumMk
);
if
(
FAILED
(
hr
))
return
hr
;
while
(
IEnumMoniker_Next
(
pEnumMk
,
1
,
&
pmk
,
NULL
)
==
S_OK
)
{
IROTData
*
pROTData
;
hr
=
IMoniker_QueryInterface
(
pmk
,
&
IID_IROTData
,
(
void
**
)
&
pROTData
);
if
(
FAILED
(
hr
))
ERR
(
"moniker doesn't support IROTData interface
\n
"
);
if
(
SUCCEEDED
(
hr
))
{
ULONG
cbData
;
hr
=
IROTData_GetComparisonData
(
pROTData
,
NULL
,
0
,
&
cbData
);
IROTData_Release
(
pROTData
);
if
(
SUCCEEDED
(
hr
)
||
(
hr
==
E_OUTOFMEMORY
))
{
*
pcbData
+=
cbData
;
hr
=
S_OK
;
}
else
ERR
(
"IROTData_GetComparisonData failed with error 0x%08lx
\n
"
,
hr
);
}
IMoniker_Release
(
pmk
);
if
(
FAILED
(
hr
))
{
IEnumMoniker_Release
(
pEnumMk
);
return
hr
;
}
}
if
(
cbMax
<
*
pcbData
)
return
E_OUTOFMEMORY
;
IEnumMoniker_Reset
(
pEnumMk
);
memcpy
(
pbData
,
&
CLSID_CompositeMoniker
,
sizeof
(
CLSID
));
pbData
+=
sizeof
(
CLSID
);
cbMax
-=
sizeof
(
CLSID
);
while
(
IEnumMoniker_Next
(
pEnumMk
,
1
,
&
pmk
,
NULL
)
==
S_OK
)
{
IROTData
*
pROTData
;
hr
=
IMoniker_QueryInterface
(
pmk
,
&
IID_IROTData
,
(
void
**
)
&
pROTData
);
if
(
FAILED
(
hr
))
ERR
(
"moniker doesn't support IROTData interface
\n
"
);
if
(
SUCCEEDED
(
hr
))
{
ULONG
cbData
;
hr
=
IROTData_GetComparisonData
(
pROTData
,
pbData
,
cbMax
,
&
cbData
);
IROTData_Release
(
pROTData
);
if
(
SUCCEEDED
(
hr
))
{
pbData
+=
cbData
;
cbMax
-=
cbData
;
}
else
ERR
(
"IROTData_GetComparisonData failed with error 0x%08lx
\n
"
,
hr
);
}
IMoniker_Release
(
pmk
);
if
(
FAILED
(
hr
))
{
IEnumMoniker_Release
(
pEnumMk
);
return
hr
;
}
}
IEnumMoniker_Release
(
pEnumMk
);
return
S_OK
;
}
/******************************************************************************
...
...
@@ -1458,7 +1539,7 @@ static const IROTDataVtbl VT_ROTDataImpl =
CompositeMonikerROTDataImpl_QueryInterface
,
CompositeMonikerROTDataImpl_AddRef
,
CompositeMonikerROTDataImpl_Release
,
CompositeMonikerROTDataImpl_GetCompar
a
isonData
CompositeMonikerROTDataImpl_GetComparisonData
};
/******************************************************************************
...
...
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