Fixed incorrect IShellFolder::EnumOjects API usage.

This commit is contained in:
Michael Jung 2005-04-22 19:07:00 +00:00 committed by Alexandre Julliard
parent cc255b0c8b
commit 2a788026a3
1 changed files with 1 additions and 1 deletions

View File

@ -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)))
{