mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[SHELL32] Fix BrowseForFolder expanding a folder containing a zip (#7585)
Commit 325d74c30f (PR #7437) introduced a side effect that made impossible
to expand a folder when it contained both a ZIP file and subfolders.
Fix this by ignoring the return value of BrFolder_InsertItem and free the
pidlTemp pointer explicitly in all cases.
CORE-19955 CORE-19751
This commit is contained in:
@@ -408,8 +408,8 @@ BrFolder_Expand(
|
||||
ULONG ulFetched;
|
||||
while (S_OK == pEnum->Next(1, &pidlTemp, &ulFetched))
|
||||
{
|
||||
if (!BrFolder_InsertItem(info, lpsf, pidlTemp, pidlFull, hParent))
|
||||
break;
|
||||
/* Ignore return value of BrFolder_InsertItem to avoid incomplete folder listing */
|
||||
BrFolder_InsertItem(info, lpsf, pidlTemp, pidlFull, hParent);
|
||||
pidlTemp.Free(); // Finally, free the pidl that the shell gave us...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user