shell32: Constify some variables
Andrew Talbot
andrew.talbot at talbotville.com
Tue Sep 11 17:45:29 CDT 2007
Changelog:
shell32: Constify some variables.
diff -urN a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
--- a/dlls/shell32/pidl.c 2007-05-21 15:42:00.000000000 +0100
+++ b/dlls/shell32/pidl.c 2007-09-11 23:34:23.000000000 +0100
@@ -2304,7 +2304,7 @@
*
* copies an aPidl struct
*/
-LPITEMIDLIST* _ILCopyaPidl(LPCITEMIDLIST * apidlsrc, UINT cidl)
+LPITEMIDLIST* _ILCopyaPidl(const LPCITEMIDLIST * apidlsrc, UINT cidl)
{
UINT i;
LPITEMIDLIST *apidldest;
@@ -2324,7 +2324,7 @@
*
* creates aPidl from CIDA
*/
-LPITEMIDLIST* _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, LPIDA cida)
+LPITEMIDLIST* _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, const CIDA * cida)
{
UINT i;
LPITEMIDLIST *dst;
@@ -2334,10 +2334,10 @@
return NULL;
if (pidl)
- *pidl = ILClone((LPITEMIDLIST)(&((LPBYTE)cida)[cida->aoffset[0]]));
+ *pidl = ILClone((LPCITEMIDLIST)(&((const BYTE*)cida)[cida->aoffset[0]]));
for (i = 0; i < cida->cidl; i++)
- dst[i] = ILClone((LPITEMIDLIST)(&((LPBYTE)cida)[cida->aoffset[i + 1]]));
+ dst[i] = ILClone((LPCITEMIDLIST)(&((const BYTE*)cida)[cida->aoffset[i + 1]]));
return dst;
}
diff -urN a/dlls/shell32/pidl.h b/dlls/shell32/pidl.h
--- a/dlls/shell32/pidl.h 2007-04-11 12:43:26.000000000 +0100
+++ b/dlls/shell32/pidl.h 2007-09-11 23:34:40.000000000 +0100
@@ -275,8 +275,8 @@
* aPidl helper
*/
void _ILFreeaPidl(LPITEMIDLIST * apidl, UINT cidl);
-LPITEMIDLIST * _ILCopyaPidl(LPCITEMIDLIST * apidlsrc, UINT cidl);
-LPITEMIDLIST * _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, LPIDA cida);
+LPITEMIDLIST * _ILCopyaPidl(const LPCITEMIDLIST * apidlsrc, UINT cidl);
+LPITEMIDLIST * _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, const CIDA * cida);
BOOL WINAPI ILGetDisplayNameExA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPSTR path, DWORD type);
BOOL WINAPI ILGetDisplayNameExW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPWSTR path, DWORD type);
More information about the wine-patches
mailing list