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
c14c2ebf
Commit
c14c2ebf
authored
Sep 27, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix IEnumIDList::Next() called for multiple items.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d484650b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
shelldispatch.c
dlls/shell32/shelldispatch.c
+5
-2
No files found.
dlls/shell32/shelldispatch.c
View file @
c14c2ebf
...
...
@@ -1284,7 +1284,10 @@ static HRESULT FolderItems_Constructor(FolderImpl *folder, FolderItems **ret)
if
(
This
->
item_count
)
{
LPITEMIDLIST
*
pidls
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
item_count
*
sizeof
(
*
pidls
));
LPITEMIDLIST
*
pidls
;
ULONG
fetched
;
pidls
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
item_count
*
sizeof
(
*
pidls
));
This
->
item_names
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
item_count
*
sizeof
(
*
This
->
item_names
));
if
(
!
pidls
||
!
This
->
item_names
)
...
...
@@ -1296,7 +1299,7 @@ static HRESULT FolderItems_Constructor(FolderImpl *folder, FolderItems **ret)
}
IEnumIDList_Reset
(
enumidlist
);
if
(
IEnumIDList_Next
(
enumidlist
,
This
->
item_count
,
pidls
,
NULL
)
==
S_OK
)
if
(
IEnumIDList_Next
(
enumidlist
,
This
->
item_count
,
pidls
,
&
fetched
)
==
S_OK
)
idlist_sort
(
pidls
,
0
,
This
->
item_count
-
1
,
folder
->
folder
);
for
(
i
=
0
;
i
<
This
->
item_count
;
i
++
)
...
...
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