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
1a67b1f5
Commit
1a67b1f5
authored
Nov 11, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix the length calculation of the pidl in ILSaveToStream by using the…
shell32: Fix the length calculation of the pidl in ILSaveToStream by using the helper function ILGetSize.
parent
57f36261
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
pidl.c
dlls/shell32/pidl.c
+1
-7
No files found.
dlls/shell32/pidl.c
View file @
1a67b1f5
...
...
@@ -341,7 +341,6 @@ HRESULT WINAPI ILLoadFromStream (IStream * pStream, LPITEMIDLIST * ppPidl)
*/
HRESULT
WINAPI
ILSaveToStream
(
IStream
*
pStream
,
LPCITEMIDLIST
pPidl
)
{
LPCITEMIDLIST
pidl
;
WORD
wLen
=
0
;
HRESULT
ret
=
E_FAIL
;
...
...
@@ -349,12 +348,7 @@ HRESULT WINAPI ILSaveToStream (IStream * pStream, LPCITEMIDLIST pPidl)
IStream_AddRef
(
pStream
);
pidl
=
pPidl
;
while
(
pidl
->
mkid
.
cb
)
{
wLen
+=
sizeof
(
WORD
)
+
pidl
->
mkid
.
cb
;
pidl
=
ILGetNext
(
pidl
);
}
wLen
=
ILGetSize
(
pPidl
);
if
(
SUCCEEDED
(
IStream_Write
(
pStream
,
(
LPVOID
)
&
wLen
,
2
,
NULL
)))
{
...
...
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