Ignore:
Timestamp:
Mar 29, 2000, 5:24:08 PM (25 years ago)
Author:
cbratschi
Message:

onopen fix, FindFirstFileMultiA, "shell.dll" icon fix, load exe icons

File:
1 edited

Legend:

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

    r3250 r3271  
    1 /* $Id: iconcache.cpp,v 1.5 2000-03-27 15:09:20 cbratschi Exp $ */
     1/* $Id: iconcache.cpp,v 1.6 2000-03-29 15:24:04 cbratschi Exp $ */
    22
    33/*
     
    251251HGLOBAL WINAPI ICO_ExtractIconEx(LPCSTR lpszExeFileName, HICON * RetPtr, UINT nIconIndex, UINT n, UINT cxDesired, UINT cyDesired )
    252252{  HGLOBAL  hRet = 0;
    253    LPBYTE      pData;
     253   LPBYTE   pData;
    254254   OFSTRUCT ofs;
    255255   DWORD    sig;
    256256   HFILE    hFile = OpenFile( lpszExeFileName, &ofs, OF_READ );
    257    UINT      iconDirCount = 0,iconCount = 0;
    258    LPBYTE      peimage;
    259    HANDLE      fmapping;
     257   UINT     iconDirCount = 0,iconCount = 0;
     258   LPBYTE   peimage;
     259   HANDLE   fmapping;
    260260   ULONG    uSize;
    261261
     
    619619   if ( INVALID_INDEX == index )
    620620   {
    621      ret = SIC_LoadIcon (sSourceFile, dwSourceIndex);
     621     if (strcmp(sSourceFile,"shell32.dll") == 0)
     622       ret = -1; //icon not in cache -> set to default
     623     else
     624       ret = SIC_LoadIcon (sSourceFile, dwSourceIndex);
    622625   }
    623626   else
Note: See TracChangeset for help on using the changeset viewer.