Changeset 3193 for trunk/src


Ignore:
Timestamp:
Mar 22, 2000, 5:55:52 PM (25 years ago)
Author:
cbratschi
Message:

* empty log message *

Location:
trunk/src/shell32
Files:
3 edited

Legend:

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

    r2237 r3193  
    1 /* $Id: shellpath.cpp,v 1.5 1999-12-28 23:16:33 sandervl Exp $ */
     1/* $Id: shellpath.cpp,v 1.6 2000-03-22 16:55:51 cbratschi Exp $ */
    22
    33/*
     
    817817ODINFUNCTION1(HRESULT, PathGetDriveNumberW,
    818818              LPWSTR, u)
    819 { 
     819{
    820820   return 0;
    821821}
     
    12071207LPSTR WINAPI PathRemoveBackslashA(LPSTR lpPath)
    12081208{
    1209         LPSTR temp = lpPath;
    1210         LPSTR prev = lpPath;
    1211        
    1212         while (*temp)
    1213         {
    1214                 prev = temp++;
    1215         }
    1216         if ( *prev == (CHAR)'\\')
    1217         {
    1218                 *prev = (CHAR)'\0';
    1219         }
    1220 
    1221         return prev;
     1209        LPSTR temp = lpPath;
     1210        LPSTR prev = lpPath;
     1211
     1212        while (*temp)
     1213        {
     1214                prev = temp++;
     1215        }
     1216        if ( *prev == (CHAR)'\\')
     1217        {
     1218                *prev = (CHAR)'\0';
     1219        }
     1220
     1221        return prev;
    12221222}
    12231223
    12241224LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpPath)
    12251225{
    1226         LPWSTR temp = lpPath;
    1227         LPWSTR prev = lpPath;
    1228        
    1229         while (*temp)
    1230         {
    1231                 prev = temp++;
    1232         }
    1233         if ( *prev == (WCHAR)'\\')
    1234         {
    1235                 *prev = (WCHAR)'\0';
    1236         }
    1237 
    1238         return prev;
    1239 }
    1240 
     1226        LPWSTR temp = lpPath;
     1227        LPWSTR prev = lpPath;
     1228
     1229        while (*temp)
     1230        {
     1231                prev = temp++;
     1232        }
     1233        if ( *prev == (WCHAR)'\\')
     1234        {
     1235                *prev = (WCHAR)'\0';
     1236        }
     1237
     1238        return prev;
     1239}
     1240
  • trunk/src/shell32/shlfolder.cpp

    r2358 r3193  
    1 /* $Id: shlfolder.cpp,v 1.6 2000-01-08 04:37:01 phaller Exp $ */
     1/* $Id: shlfolder.cpp,v 1.7 2000-03-22 16:55:52 cbratschi Exp $ */
    22/*
    33 * Shell Folder stuff
     
    177177   pdump(pidl);
    178178
    179    if ((pidlFirst = ILCloneFirst(pidl)))
     179   pidlFirst = ILCloneFirst(pidl);
     180   if (pidlFirst)
    180181   {
    181182     hr = IShellFolder_BindToObject(psf, pidlFirst, NULL, &IID_IShellFolder, (LPVOID*)&psfChild);
     
    562563   *ppvOut = NULL;
    563564
    564    if ((iid=_ILGetGUIDPointer(pidl)))
     565   iid = _ILGetGUIDPointer(pidl);
     566   if (iid)
    565567   {
    566568     /* we have to create a alien folder */
     
    13171319   *ppvOut = NULL;
    13181320
    1319    if ((clsid=_ILGetGUIDPointer(pidl)))
     1321   clsid = _ILGetGUIDPointer(pidl);
     1322   if (clsid)
    13201323   {
    13211324     if ( IsEqualIID(clsid, &IID_MyComputer))
     
    14191422     pdump (*apidl);
    14201423
    1421      if ((clsid=_ILGetGUIDPointer(*apidl)))
     1424     clsid = _ILGetGUIDPointer(*apidl);
     1425     if (clsid)
    14221426     {
    14231427       if (IsEqualIID(clsid, &IID_MyComputer))
     
    18711875       *rgfInOut &= 0xf0000144;
    18721876       goto next;
    1873      }
    1874      else if ((clsid=_ILGetGUIDPointer(*apidl)))
    1875      {
    1876        if (HCR_GetFolderAttributes(clsid, &attributes))
     1877     } else
     1878     {
     1879       clsid = _ILGetGUIDPointer(*apidl);
     1880       if (clsid)
    18771881       {
    1878          *rgfInOut &= attributes;
    1879          goto next;
     1882         if (HCR_GetFolderAttributes(clsid, &attributes))
     1883         {
     1884           *rgfInOut &= attributes;
     1885           goto next;
     1886         }
    18801887       }
    18811888     }
  • trunk/src/shell32/shlview.cpp

    r2354 r3193  
    1 /* $Id: shlview.cpp,v 1.6 2000-01-08 02:24:13 phaller Exp $ */
     1/* $Id: shlview.cpp,v 1.7 2000-03-22 16:55:52 cbratschi Exp $ */
    22/*
    33 * ShellView
     
    309309{
    310310   LVCOLUMNA lvColumn;
    311    SHELLDETAILS sd;
    312    int  i;
    313    char szTemp[50];
     311   SHELLDETAILS sd;
     312   int  i;
     313   char szTemp[50];
    314314
    315315   TRACE("%p\n",This);
     
    323323   {
    324324      for (i=0; 1; i++)
    325       { 
     325      {
    326326        if (!SUCCEEDED(IShellFolder2_GetDetailsOf(This->pSF2Parent, NULL, i, &sd)))
    327           break;
    328         lvColumn.fmt = sd.fmt;
    329         lvColumn.cx = sd.cxChar*8; /* chars->pixel */
    330         StrRetToStrNA( szTemp, 50, &sd.str, NULL);
    331         ListView_InsertColumnA(This->hWndList, i, &lvColumn);
     327          break;
     328        lvColumn.fmt = sd.fmt;
     329        lvColumn.cx = sd.cxChar*8; /* chars->pixel */
     330        StrRetToStrNA( szTemp, 50, &sd.str, NULL);
     331        ListView_InsertColumnA(This->hWndList, i, &lvColumn);
    332332      }
    333333   }
     
    518518       ZeroMemory(&lvItem, sizeof(lvItem)); /* create the listviewitem*/
    519519       lvItem.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;     /*set the mask*/
    520        lvItem.iItem = ListView_GetItemCount(This->hWndList);  /*add the item to the end of the list*/
     520       lvItem.iItem = i;  /*add the item to the end of the list*/
    521521       lvItem.lParam = (LPARAM) pidl;             /*set the item's data*/
    522522       lvItem.pszText = LPSTR_TEXTCALLBACKA;         /*get text on a callback basis*/
     
    10731073       pidl = (LPITEMIDLIST)lpdi->item.lParam;
    10741074
    1075             if(lpdi->item.mask & LVIF_TEXT)     /* text requested */
    1076             {
    1077               if (This->pSF2Parent)
    1078               {
    1079                 SHELLDETAILS sd;
    1080                 IShellFolder2_GetDetailsOf(This->pSF2Parent, pidl, lpdi->item.iSubItem, &sd);
    1081                 StrRetToStrNA( lpdi->item.pszText, lpdi->item.cchTextMax, &sd.str, NULL);
    1082                 TRACE("-- text=%s\n",lpdi->item.pszText);               
    1083               }
    1084               else
    1085               {
    1086                 FIXME("no SF2\n");
    1087               }
    1088             }
    1089             if(lpdi->item.mask & LVIF_IMAGE)    /* image requested */
     1075            if(lpdi->item.mask & LVIF_TEXT)     /* text requested */
     1076            {
     1077              if (This->pSF2Parent)
     1078              {
     1079                SHELLDETAILS sd;
     1080                IShellFolder2_GetDetailsOf(This->pSF2Parent, pidl, lpdi->item.iSubItem, &sd);
     1081                StrRetToStrNA( lpdi->item.pszText, lpdi->item.cchTextMax, &sd.str, NULL);
     1082                TRACE("-- text=%s\n",lpdi->item.pszText);
     1083              }
     1084              else
     1085              {
     1086                FIXME("no SF2\n");
     1087              }
     1088            }
     1089            if(lpdi->item.mask & LVIF_IMAGE)    /* image requested */
    10901090         {
    10911091           lpdi->item.iImage = SHMapPIDLToSystemImageListIndex(This->pSFParent, pidl, 0);
    1092          }       
     1092         }
    10931093       break;
    10941094
Note: See TracChangeset for help on using the changeset viewer.