Changeset 793
- Timestamp:
- Sep 2, 1999, 6:42:57 PM (26 years ago)
- Location:
- trunk/src/shell32/new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/shell32/new/iconcache.cpp ¶
r791 r793 12 12 #include "winuser.h" 13 13 #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" 17 17 #include "cursoricon.h" 18 18 #include "module.h" … … 67 67 } 68 68 #endif 69 70 71 static HDPA sic_hdpa = 0; 72 static CRITICAL_SECTION SHELL32_SicCS; 73 74 75 69 76 /************************************************************************* 70 77 * SHELL_GetResourceTable … … 334 341 } 335 342 336 if ( !(peimage = MapViewOfFile(fmapping,FILE_MAP_READ,0,0,0)))343 if ( !(peimage = (BYTE*)MapViewOfFile(fmapping,FILE_MAP_READ,0,0,0))) 337 344 { WARN("failed to mmap filemap.\n"); 338 345 hRet = ICO_INVALID_FILE; … … 466 473 } SIC_ENTRY, * LPSIC_ENTRY; 467 474 468 static HDPA sic_hdpa = 0;469 static CRITICAL_SECTION SHELL32_SicCS;470 471 475 /***************************************************************************** 472 476 * SIC_CompareEntrys [called by comctl32.dll] … … 481 485 return 1; 482 486 483 if (strc asecmp(((LPSIC_ENTRY)p1)->sSourceFile,((LPSIC_ENTRY)p2)->sSourceFile))487 if (strcmp(((LPSIC_ENTRY)p1)->sSourceFile,((LPSIC_ENTRY)p2)->sSourceFile)) 484 488 return 1; 485 489 … … 787 791 INT WINAPI Shell_GetCachedImageIndexAW(LPCVOID szPath, INT nIndex, BOOL bSimulateDoc) 788 792 { 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); 791 795 } 792 796 … … 796 800 HICON WINAPI ExtractIconExAW ( LPCVOID lpszFile, INT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIcons ) 797 801 { 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); 800 804 } 801 805 /************************************************************************* -
TabularUnified trunk/src/shell32/new/pidl.cpp ¶
r791 r793 29 29 #include "wine/undocshell.h" 30 30 31 #include <heapstring.h> 31 32 #include <misc.h> 32 33 … … 257 258 258 259 if (SUCCEEDED(IStream_Read(pStream, (LPVOID)&wLen, 2, &dwBytesRead))) 259 { *ppPidl = SHAlloc (wLen);260 { *ppPidl = (ITEMIDLIST*)SHAlloc (wLen); 260 261 if (SUCCEEDED(IStream_Read(pStream, *ppPidl , wLen, &dwBytesRead))) 261 262 { ret = S_OK; … … 310 311 if (SUCCEEDED (SHGetDesktopFolder(&sf))) 311 312 { 312 ret = IShellFolder_ParseDisplayName(sf,0, NULL, path, &pchEaten, ppidl, attributes);313 ret = IShellFolder_ParseDisplayName(sf,0, NULL, (LPOLESTR)path, &pchEaten, ppidl, attributes); 313 314 IShellFolder_Release(sf); 314 315 } … … 318 319 { 319 320 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); 322 323 } 323 324 … … 394 395 _ILSimpleGetText(pidltemp2, szData2, MAX_PATH); 395 396 396 if (strc asecmp ( szData1, szData2 )!=0 )397 if (strcmp ( szData1, szData2 )!=0 ) 397 398 return FALSE; 398 399 … … 430 431 _ILSimpleGetText(pChild, szData2, MAX_PATH); 431 432 432 if (strc asecmp ( szData1, szData2 )!=0 )433 if (strcmp ( szData1, szData2 )!=0 ) 433 434 return FALSE; 434 435 … … 488 489 _ILSimpleGetText(pidltemp2, szData2, MAX_PATH); 489 490 490 if (strc asecmp(szData1,szData2))491 if (strcmp(szData1,szData2)) 491 492 break; 492 493 … … 539 540 len1 = ILGetSize(pidl1)-2; 540 541 len2 = ILGetSize(pidl2); 541 pidlNew = SHAlloc(len1+len2);542 pidlNew = (ITEMIDLIST*)SHAlloc(len1+len2); 542 543 543 544 if (pidlNew) … … 731 732 { 732 733 if ( VERSION_OsIsUnicode()) 733 return ILCreateFromPathW ( path);734 return ILCreateFromPathA ( path);734 return ILCreateFromPathW ((LPCWSTR)path); 735 return ILCreateFromPathA ((LPCSTR)path); 735 736 } 736 737 /************************************************************************* … … 776 777 { 777 778 if ( VERSION_OsIsUnicode()) 778 return SHSimpleIDListFromPathW ( lpszPath);779 return SHSimpleIDListFromPathA ( lpszPath);779 return SHSimpleIDListFromPathW ((LPWSTR)lpszPath); 780 return SHSimpleIDListFromPathA ((LPSTR)lpszPath); 780 781 } 781 782 … … 846 847 case SHGDFIL_FINDDATA: 847 848 { 848 WIN32_FIND_DATAA * pfd = dest;849 WIN32_FIND_DATAA * pfd = (WIN32_FIND_DATAA*)dest; 849 850 CHAR pszPath[MAX_PATH]; 850 851 HANDLE handle; … … 997 998 998 999 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); 1001 1002 } 1002 1003 … … 1145 1146 { case PT_DESKTOP: 1146 1147 uSize = 0; 1147 pidlOut = SHAlloc(uSize + 2);1148 pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2); 1148 1149 pidlOut->mkid.cb = uSize; 1149 1150 TRACE_(pidl)("- create Desktop\n"); … … 1152 1153 case PT_MYCOMP: 1153 1154 uSize = 2 + 2 + sizeof(GUID); 1154 pidlOut = SHAlloc(uSize + 2);1155 pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2); 1155 1156 ZeroMemory(pidlOut, uSize + 2); 1156 1157 pidlOut->mkid.cb = uSize; … … 1163 1164 case PT_DRIVE: 1164 1165 uSize = 2 + 23; 1165 pidlOut = SHAlloc(uSize + 2);1166 pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2); 1166 1167 ZeroMemory(pidlOut, uSize + 2); 1167 1168 pidlOut->mkid.cb = uSize; … … 1176 1177 case PT_VALUE: 1177 1178 uSize = 2 + 12 + uInSize; 1178 pidlOut = SHAlloc(uSize + 2);1179 pidlOut = (ITEMIDLIST*)SHAlloc(uSize + 2); 1179 1180 ZeroMemory(pidlOut, uSize + 2); 1180 1181 pidlOut->mkid.cb = uSize;
Note:
See TracChangeset
for help on using the changeset viewer.