Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
605f503a
Commit
605f503a
authored
Jun 20, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Import QISearch() from kernelbase.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
12db7213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
+0
-51
ordinal.c
dlls/shlwapi/ordinal.c
+0
-51
No files found.
dlls/shlwapi/ordinal.c
View file @
605f503a
...
...
@@ -1900,57 +1900,6 @@ BOOL WINAPI FDSA_DeleteItem(FDSA_info *info, DWORD where)
info
->
num_items
--
;
return
TRUE
;
}
/*************************************************************************
* @ [SHLWAPI.219]
*
* Call IUnknown_QueryInterface() on a table of objects.
*
* RETURNS
* Success: S_OK.
* Failure: E_POINTER or E_NOINTERFACE.
*/
HRESULT
WINAPI
QISearch
(
void
*
base
,
/* [in] Table of interfaces */
const
QITAB
*
table
,
/* [in] Array of REFIIDs and indexes into the table */
REFIID
riid
,
/* [in] REFIID to get interface for */
void
**
ppv
)
/* [out] Destination for interface pointer */
{
HRESULT
ret
;
IUnknown
*
a_vtbl
;
const
QITAB
*
xmove
;
TRACE
(
"(%p %p %s %p)
\n
"
,
base
,
table
,
debugstr_guid
(
riid
),
ppv
);
if
(
ppv
)
{
xmove
=
table
;
while
(
xmove
->
piid
)
{
TRACE
(
"trying (offset %d) %s
\n
"
,
xmove
->
dwOffset
,
debugstr_guid
(
xmove
->
piid
));
if
(
IsEqualIID
(
riid
,
xmove
->
piid
))
{
a_vtbl
=
(
IUnknown
*
)(
xmove
->
dwOffset
+
(
LPBYTE
)
base
);
TRACE
(
"matched, returning (%p)
\n
"
,
a_vtbl
);
*
ppv
=
a_vtbl
;
IUnknown_AddRef
(
a_vtbl
);
return
S_OK
;
}
xmove
++
;
}
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
a_vtbl
=
(
IUnknown
*
)(
table
->
dwOffset
+
(
LPBYTE
)
base
);
TRACE
(
"returning first for IUnknown (%p)
\n
"
,
a_vtbl
);
*
ppv
=
a_vtbl
;
IUnknown_AddRef
(
a_vtbl
);
return
S_OK
;
}
*
ppv
=
0
;
ret
=
E_NOINTERFACE
;
}
else
ret
=
E_POINTER
;
TRACE
(
"-- 0x%08x
\n
"
,
ret
);
return
ret
;
}
/*************************************************************************
* @ [SHLWAPI.220]
*
...
...
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