Changeset 793


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

.

Location:
trunk/src/shell32/new
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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/*************************************************************************
  • TabularUnified trunk/src/shell32/new/pidl.cpp

    r791 r793  
    2929#include "wine/undocshell.h"
    3030
     31#include <heapstring.h>
    3132#include <misc.h>
    3233
     
    257258
    258259        if (SUCCEEDED(IStream_Read(pStream, (LPVOID)&wLen, 2, &dwBytesRead)))
    259         { *ppPidl = SHAlloc (wLen);
     260        { *ppPidl = (ITEMIDLIST*)SHAlloc (wLen);
    260261          if (SUCCEEDED(IStream_Read(pStream, *ppPidl , wLen, &dwBytesRead)))
    261262          { ret = S_OK;
     
    310311        if (SUCCEEDED (SHGetDesktopFolder(&sf)))
    311312        {
    312           ret = IShellFolder_ParseDisplayName(sf,0, NULL, path, &pchEaten, ppidl, attributes);
     313          ret = IShellFolder_ParseDisplayName(sf,0, NULL, (LPOLESTR)path, &pchEaten, ppidl, attributes);
    313314          IShellFolder_Release(sf);
    314315        }
     
    318319{
    319320        if ( VERSION_OsIsUnicode())
    320           return SHILCreateFromPathW (path, ppidl, attributes);
    321         return SHILCreateFromPathA (path, ppidl, attributes);
     321          return SHILCreateFromPathW ((LPCWSTR)path, ppidl, attributes);
     322        return SHILCreateFromPathA ((LPCSTR)path, ppidl, attributes);
    322323}
    323324
     
    394395            _ILSimpleGetText(pidltemp2, szData2, MAX_PATH);
    395396
    396             if (strcasecmp ( szData1, szData2 )!=0 )
     397            if (strcmp ( szData1, szData2 )!=0 )
    397398              return FALSE;
    398399
     
    430431          _ILSimpleGetText(pChild, szData2, MAX_PATH);
    431432
    432           if (strcasecmp ( szData1, szData2 )!=0 )
     433          if (strcmp ( szData1, szData2 )!=0 )
    433434            return FALSE;
    434435
     
    488489            _ILSimpleGetText(pidltemp2, szData2, MAX_PATH);
    489490
    490             if (strcasecmp(szData1,szData2))
     491            if (strcmp(szData1,szData2))
    491492              break;
    492493
     
    539540        len1  = ILGetSize(pidl1)-2;
    540541        len2  = ILGetSize(pidl2);
    541         pidlNew  = SHAlloc(len1+len2);
     542        pidlNew  = (ITEMIDLIST*)SHAlloc(len1+len2);
    542543
    543544        if (pidlNew)
     
    731732{
    732733        if ( VERSION_OsIsUnicode())
    733           return ILCreateFromPathW (path);
    734         return ILCreateFromPathA (path);
     734          return ILCreateFromPathW ((LPCWSTR)path);
     735        return ILCreateFromPathA ((LPCSTR)path);
    735736}
    736737/*************************************************************************
     
    776777{
    777778        if ( VERSION_OsIsUnicode())
    778           return SHSimpleIDListFromPathW (lpszPath);
    779         return SHSimpleIDListFromPathA (lpszPath);
     779          return SHSimpleIDListFromPathW ((LPWSTR)lpszPath);
     780        return SHSimpleIDListFromPathA ((LPSTR)lpszPath);
    780781}
    781782
     
    846847          case SHGDFIL_FINDDATA:
    847848            {
    848                WIN32_FIND_DATAA * pfd = dest;
     849               WIN32_FIND_DATAA * pfd = (WIN32_FIND_DATAA*)dest;
    849850               CHAR     pszPath[MAX_PATH];
    850851               HANDLE   handle;
     
    997998
    998999        if (VERSION_OsIsUnicode())
    999           return SHGetPathFromIDListW(pidl,pszPath);
    1000         return SHGetPathFromIDListA(pidl,pszPath);
     1000          return SHGetPathFromIDListW(pidl,(LPWSTR)pszPath);
     1001        return SHGetPathFromIDListA(pidl,(LPSTR)pszPath);
    10011002}
    10021003
     
    11451146        { case PT_DESKTOP:
    11461147            uSize = 0;
    1147             pidlOut = SHAlloc(uSize + 2);
     1148            pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2);
    11481149            pidlOut->mkid.cb = uSize;
    11491150            TRACE_(pidl)("- create Desktop\n");
     
    11521153          case PT_MYCOMP:
    11531154            uSize = 2 + 2 + sizeof(GUID);
    1154             pidlOut = SHAlloc(uSize + 2);
     1155            pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2);
    11551156            ZeroMemory(pidlOut, uSize + 2);
    11561157            pidlOut->mkid.cb = uSize;
     
    11631164          case PT_DRIVE:
    11641165            uSize = 2 + 23;
    1165             pidlOut = SHAlloc(uSize + 2);
     1166            pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2);
    11661167            ZeroMemory(pidlOut, uSize + 2);
    11671168            pidlOut->mkid.cb = uSize;
     
    11761177          case PT_VALUE:
    11771178            uSize = 2 + 12 + uInSize;
    1178             pidlOut = SHAlloc(uSize + 2);
     1179            pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2);
    11791180            ZeroMemory(pidlOut, uSize + 2);
    11801181            pidlOut->mkid.cb = uSize;
Note: See TracChangeset for help on using the changeset viewer.