Ignore:
Timestamp:
Aug 18, 2000, 4:01:27 AM (25 years ago)
Author:
phaller
Message:

Synchronized shell32 with wine

File:
1 edited

Legend:

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

    r3551 r4032  
    1 /* $Id: iconcache.cpp,v 1.8 2000-05-18 14:16:02 sandervl Exp $ */
     1/* $Id: iconcache.cpp,v 1.9 2000-08-18 02:01:15 phaller Exp $ */
    22
    33/*
     
    3636
    3737#include "shellapi.h"
     38#include "shlguid.h"
     39#include "shlwapi.h"
    3840#include "pidl.h"
    3941#include "shell32_main.h"
     42#include "wine/undocshell.h"
    4043
    4144#include <heapstring.h>
     
    765768 *
    766769 */
    767 BOOL PidlToSicIndex (IShellFolder * sh, LPITEMIDLIST pidl, BOOL bBigIcon, UINT * pIndex)
     770BOOL PidlToSicIndex (IShellFolder * sh,
     771                     LPITEMIDLIST pidl,
     772                     BOOL bBigIcon,
     773                     UINT uFlags,
     774                     UINT * pIndex)
    768775{
    769776   IExtractIcon   *ei;
     
    777784   if (SUCCEEDED (IShellFolder_GetUIObjectOf(sh, 0, 1, &pidl, &IID_IExtractIconA, 0, (void **)&ei)))
    778785   {
    779      if (NOERROR==IExtractIconA_GetIconLocation(ei, 0, szIconFile, MAX_PATH, &iSourceIndex, &dwFlags))
     786     if (NOERROR==IExtractIconA_GetIconLocation(ei, uFlags, szIconFile, MAX_PATH, &iSourceIndex, &dwFlags))
    780787     { *pIndex = SIC_GetIconIndex(szIconFile, iSourceIndex);
    781788       ret = TRUE;
     
    801808 */
    802809
    803 ODINFUNCTION3(UINT,SHMapPIDLToSystemImageListIndex,LPSHELLFOLDER, sh,
    804                                                    LPITEMIDLIST,  pidl,
    805                                                    UINT*,         pIndex)
     810ODINFUNCTION3(int,SHMapPIDLToSystemImageListIndex,
     811              LPSHELLFOLDER, sh,
     812              LPITEMIDLIST,  pidl,
     813              UINT*,         pIndex)
    806814{
    807815   UINT  Index;
     
    810818
    811819   if (pIndex)
    812      PidlToSicIndex ( sh, pidl, 1, pIndex);
    813    PidlToSicIndex ( sh, pidl, 0, &Index);
     820     PidlToSicIndex ( sh, pidl, 1, 0, pIndex);
     821   PidlToSicIndex ( sh, pidl, 0, 0, &Index);
    814822   return Index;
    815823}
Note: See TracChangeset for help on using the changeset viewer.