Ignore:
Timestamp:
Sep 13, 1999, 2:36:35 PM (26 years ago)
Author:
phaller
Message:

Fix: updated to current wine 19990913

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/pidl.cpp

    r873 r918  
    142142}
    143143
    144 
    145144/*************************************************************************
    146145 * ILGetDisplayName                     [SHELL32.15]
     
    852851               HANDLE   handle;
    853852
    854                if ( len < sizeof (WIN32_FIND_DATAA))
     853               if ( len < sizeof (WIN32_FIND_DATAA)) {
     854                 ERR_(shell)("%d does not find sizeof(finddata)\n",len);
    855855                 return E_INVALIDARG;
     856               }
    856857
    857858               SHGetPathFromIDListA(pidl, pszPath);
     
    879880HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID dest, int len)
    880881{
    881         FIXME_(shell)("sf=%p pidl=%p 0x%04x %p 0x%04x stub\n",psf,pidl,nFormat,dest,len);
    882 
     882        if (! psf || !dest )  return E_INVALIDARG;
     883
     884        switch (nFormat)
     885        {
     886          case SHGDFIL_FINDDATA:
     887            {
     888               WIN32_FIND_DATAW * pfd = (WIN32_FIND_DATAW*)dest;
     889               WCHAR    pszPath[MAX_PATH];
     890               HANDLE   handle;
     891
     892               if ( len < sizeof (WIN32_FIND_DATAW)) {
     893                 ERR_(shell)("%d does not find sizeof(finddata)\n",len);
     894                 return E_INVALIDARG;
     895               }
     896               SHGetPathFromIDListW(pidl, pszPath);
     897               if ((handle  = FindFirstFileW ( pszPath, pfd)))
     898                 FindClose (handle);
     899            }
     900            return NOERROR;
     901          default: /* fallthrough */
     902            break;
     903        }
     904        FIXME_(shell)("(sf=%p pidl=%p nFormat=0x%04x %p 0x%04x), unhandled.\n",psf,pidl,nFormat,dest,len);
    883905        return SHGetDataFromIDListA( psf, pidl, nFormat, dest, len);
    884906}
Note: See TracChangeset for help on using the changeset viewer.