Skip to content
Snippets Groups Projects
Commit 2a788026 authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard
Browse files

Fixed incorrect IShellFolder::EnumOjects API usage.

parent cc255b0c
No related branches found
No related tags found
No related merge requests found
......@@ -308,7 +308,7 @@ static void FillTreeView(IShellFolder * lpsf, LPITEMIDLIST pidl, HTREEITEM hPar
if (SUCCEEDED(hr))
{
hr = IShellFolder_EnumObjects(pSFChild, hwnd, BrowseFlagsToSHCONTF(lpBrowseInfo->ulFlags), &pEnumIL);
if (SUCCEEDED(hr))
if (hr == S_OK)
{
if ((IEnumIDList_Skip(pEnumIL, 1) != S_OK) || FAILED(IEnumIDList_Reset(pEnumIL)))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment