Ignore:
Timestamp:
Mar 28, 2000, 5:28:54 PM (25 years ago)
Author:
cbratschi
Message:

floppy name resource, release fix (don't use pdump)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shlview.cpp

    r3250 r3257  
    1 /* $Id: shlview.cpp,v 1.10 2000-03-27 15:09:22 cbratschi Exp $ */
     1/* $Id: shlview.cpp,v 1.11 2000-03-28 15:28:54 cbratschi Exp $ */
    22/*
    33 * ShellView
     
    115115#define FILEDIALOG_COLUMN_TIME 3
    116116#define FILEDIALOG_COLUMN_ATTRIB 4
    117 //CB: todo: drive view!
    118117
    119118/*menu items */
     
    184183 */
    185184static BOOL IsInCommDlg(IShellViewImpl * This)
    186 {  return(This->pCommDlgBrowser != NULL);
     185{
     186  return(This->pCommDlgBrowser != NULL);
    187187}
    188188
     
    502502
    503503//CB: really slow, even without debug information
     504//    too much transfers
    504505   TRACE("%p\n",This);
    505506
     
    507508//    OS/2's APIs can read more than one file per call -> much faster
    508509//    -> add a new API for faster handling
     510
    509511   /* get the itemlist from the shfolder*/
    510512   hRes = IShellFolder_EnumObjects(This->pSFParent,This->hWnd, SHCONTF_NONFOLDERS | SHCONTF_FOLDERS, &pEnumIDList);
     
    526528   while((S_OK == IEnumIDList_Next(pEnumIDList,1,(LPITEMIDLIST*)&pidl,&dwFetched)) && dwFetched)
    527529   {
    528      if (pDPA_InsertPtr(hdpa, 0x7fff, pidl) == -1)
     530     if (IncludeObject(This,pidl) == S_OK) /* in a commdlg This works as a filemask*/
    529531     {
    530        SHFree(pidl);
    531      }
     532       if (pDPA_InsertPtr(hdpa, 0x7fff, pidl) == -1)
     533       {
     534         SHFree(pidl);
     535       }
     536     } else SHFree(pidl);
    532537   }
    533538
     
    548553     pidl = (LPITEMIDLIST)DPA_GetPtr(hdpa, i);
    549554
    550      if (IncludeObject(This, pidl) == S_OK) /* in a commdlg This works as a filemask*/
    551      {
    552        lvItem.iItem = iPos;                                      /*add the item to the end of the list*/
    553        lvItem.lParam = (LPARAM)pidl;                         /*set the item's data*/
    554        ListView_InsertItemA(This->hWndList, &lvItem);
    555        iPos++;
    556      }
    557      else
    558        SHFree(pidl);                     /* the listview has the COPY*/
     555     lvItem.iItem = iPos;                                 /*add the item to the end of the list*/
     556     lvItem.lParam = (LPARAM)pidl;                        /*set the item's data*/
     557     ListView_InsertItemA(This->hWndList, &lvItem);
     558     iPos++;
    559559   }
    560560
Note: See TracChangeset for help on using the changeset viewer.