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/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.