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
c8355792
Commit
c8355792
authored
Apr 10, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Apr 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ILLoadFromString implemented.
parent
bce5f88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
pidl.c
dlls/shell32/pidl.c
+36
-0
No files found.
dlls/shell32/pidl.c
View file @
c8355792
...
@@ -136,6 +136,42 @@ LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST pidl)
...
@@ -136,6 +136,42 @@ LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST pidl)
return
newpidl
;
return
newpidl
;
}
}
/*************************************************************************
/*************************************************************************
* ILLoadFromStream
*
* NOTES
* the first two bytes are the len, the pidl is following then
*/
HRESULT
WINAPI
ILLoadFromStream
(
IStream
*
pStream
,
LPITEMIDLIST
*
ppPidl
)
{
WORD
wLen
=
0
;
DWORD
dwBytesRead
;
HRESULT
ret
=
E_FAIL
;
TRACE
(
shell
,
"%p %p
\n
"
,
pStream
,
ppPidl
);
if
(
*
ppPidl
)
{
SHFree
(
*
ppPidl
);
*
ppPidl
=
NULL
;
}
IStream_AddRef
(
pStream
);
if
(
SUCCEEDED
(
IStream_Read
(
pStream
,
(
LPVOID
)
&
wLen
,
2
,
&
dwBytesRead
)))
{
*
ppPidl
=
SHAlloc
(
wLen
);
if
(
SUCCEEDED
(
IStream_Read
(
pStream
,
*
ppPidl
,
wLen
,
&
dwBytesRead
)))
{
ret
=
S_OK
;
}
else
{
SHFree
(
*
ppPidl
);
*
ppPidl
=
NULL
;
}
}
IStream_Release
(
pStream
);
return
ret
;
}
/*************************************************************************
* SHILCreateFromPath [SHELL32.28]
* SHILCreateFromPath [SHELL32.28]
*
*
* NOTES
* NOTES
...
...
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