Ignore:
Timestamp:
Aug 22, 2002, 4:20:44 PM (23 years ago)
Author:
sandervl
Message:

Added bugfix to IEnumIDList_Folder_Constructor (from Wine); Enabled Christoph Bratschi's CreateFolderEnumList optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/enumidlist.c

    r8586 r9094  
    1 /* $Id: enumidlist.c,v 1.5 2002-06-07 08:21:43 sandervl Exp $ */
     1/* $Id: enumidlist.c,v 1.6 2002-08-22 14:20:44 sandervl Exp $ */
    22/*
    33 *      IEnumIDList
     
    9292 *  CreateFolderEnumList()
    9393 */
     94#define __WIN32OS2__TEST_TURNED_OFF
     95
    9496#ifdef __WIN32OS2__TEST_TURNED_OFF
    9597//CB: Special version to speed up retrieving files in a directory
    96 
     98//SvL: Works well and is twice as fast. Quite important when called way too
     99//     many times
    97100/**************************************************************************
    98101 *  AddToEnumList()
     
    210213                    return FALSE;
    211214                  }
    212                 } else if (dwFlags & SHCONTF_NONFOLDERS)
     215                }
     216                else
     217                if (dwFlags & SHCONTF_NONFOLDERS)
    213218                { //file
    214219                  pidl = _ILCreateValue(&stffile[x]);
     
    221226              }
    222227              count = MULTICOUNT;
    223             } while(FindNextFileMultiA(hFile,stffile,&count));
     228            }
     229            while(FindNextFileMultiA(hFile,stffile,&count));
     230
    224231            FindClose(hFile);
    225232            UniteEnumLists((IEnumIDList*)This);
     
    514521            {
    515522              HeapFree(GetProcessHeap(),0,lpeidl);
     523              lpeidl = NULL;
    516524            }
    517525          }
Note: See TracChangeset for help on using the changeset viewer.