Ignore:
Timestamp:
Sep 2, 1999, 6:42:57 PM (26 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

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

    r791 r793  
    1212#include "winuser.h"
    1313#include "wingdi.h"
    14 #include "wine/winuser16.h"
    15 #include "wine/winbase16.h"
    16 #include "neexe.h"
     14//#include "wine/winuser16.h"
     15//#include "wine/winbase16.h"
     16//#include "neexe.h"
    1717#include "cursoricon.h"
    1818#include "module.h"
     
    6767}
    6868#endif
     69
     70
     71static HDPA             sic_hdpa = 0;
     72static CRITICAL_SECTION SHELL32_SicCS;
     73
     74
     75
    6976/*************************************************************************
    7077 *                              SHELL_GetResourceTable
     
    334341          }
    335342
    336           if ( !(peimage = MapViewOfFile(fmapping,FILE_MAP_READ,0,0,0)))
     343          if ( !(peimage = (BYTE*)MapViewOfFile(fmapping,FILE_MAP_READ,0,0,0)))
    337344          { WARN("failed to mmap filemap.\n");
    338345            hRet = ICO_INVALID_FILE;
     
    466473} SIC_ENTRY, * LPSIC_ENTRY;
    467474
    468 static HDPA             sic_hdpa = 0;
    469 static CRITICAL_SECTION SHELL32_SicCS;
    470 
    471475/*****************************************************************************
    472476 * SIC_CompareEntrys                    [called by comctl32.dll]
     
    481485          return 1;
    482486
    483         if (strcasecmp(((LPSIC_ENTRY)p1)->sSourceFile,((LPSIC_ENTRY)p2)->sSourceFile))
     487        if (strcmp(((LPSIC_ENTRY)p1)->sSourceFile,((LPSIC_ENTRY)p2)->sSourceFile))
    484488          return 1;
    485489
     
    787791INT WINAPI Shell_GetCachedImageIndexAW(LPCVOID szPath, INT nIndex, BOOL bSimulateDoc)
    788792{       if( VERSION_OsIsUnicode())
    789           return Shell_GetCachedImageIndexW(szPath, nIndex, bSimulateDoc);
    790         return Shell_GetCachedImageIndexA(szPath, nIndex, bSimulateDoc);
     793          return Shell_GetCachedImageIndexW((LPWSTR)szPath, nIndex, bSimulateDoc);
     794        return Shell_GetCachedImageIndexA((LPSTR)szPath, nIndex, bSimulateDoc);
    791795}
    792796
     
    796800HICON WINAPI ExtractIconExAW ( LPCVOID lpszFile, INT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIcons )
    797801{       if (VERSION_OsIsUnicode())
    798           return ExtractIconExW ( lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
    799         return ExtractIconExA ( lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
     802          return ExtractIconExW ( (LPWSTR)lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
     803        return ExtractIconExA ( (LPSTR)lpszFile, nIconIndex, phiconLarge, phiconSmall, nIcons);
    800804}
    801805/*************************************************************************
Note: See TracChangeset for help on using the changeset viewer.