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
9b9325fb
Commit
9b9325fb
authored
Feb 18, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Feb 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Partially implement SHCreateShellItem.
parent
e69c663c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
7 deletions
+35
-7
pidl.c
dlls/shell32/pidl.c
+0
-7
shellitem.c
dlls/shell32/shellitem.c
+35
-0
No files found.
dlls/shell32/pidl.c
View file @
9b9325fb
...
...
@@ -2369,10 +2369,3 @@ LPITEMIDLIST* _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, const CIDA * cida)
return
dst
;
}
HRESULT
WINAPI
SHCreateShellItem
(
LPCITEMIDLIST
pidlParent
,
IShellFolder
*
psfParent
,
LPCITEMIDLIST
pidl
,
IShellItem
**
ppsi
)
{
FIXME
(
"STUB: %p %p %p %p
\n
"
,
pidlParent
,
psfParent
,
pidl
,
ppsi
);
return
E_NOINTERFACE
;
}
dlls/shell32/shellitem.c
View file @
9b9325fb
...
...
@@ -174,3 +174,38 @@ HRESULT WINAPI IShellItem_Constructor(IUnknown *pUnkOuter, REFIID riid, void **p
return
ret
;
}
HRESULT
WINAPI
SHCreateShellItem
(
LPCITEMIDLIST
pidlParent
,
IShellFolder
*
psfParent
,
LPCITEMIDLIST
pidl
,
IShellItem
**
ppsi
)
{
ShellItem
*
This
;
LPITEMIDLIST
new_pidl
;
HRESULT
ret
;
TRACE
(
"(%p,%p,%p,%p)
\n
"
,
pidlParent
,
psfParent
,
pidl
,
ppsi
);
if
(
!
pidlParent
&&
!
psfParent
&&
pidl
)
{
new_pidl
=
ILClone
(
pidl
);
if
(
!
new_pidl
)
return
E_OUTOFMEMORY
;
}
else
{
FIXME
(
"(%p,%p,%p) not implemented
\n
"
,
pidlParent
,
psfParent
,
pidl
);
return
E_NOINTERFACE
;
}
ret
=
IShellItem_Constructor
(
NULL
,
&
IID_IShellItem
,
(
void
**
)
&
This
);
if
(
This
)
{
*
ppsi
=
(
IShellItem
*
)
This
;
This
->
pidl
=
new_pidl
;
}
else
{
*
ppsi
=
NULL
;
ILFree
(
new_pidl
);
}
return
ret
;
}
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