Andrew Talbot : shell32: Constify some variables.

Alexandre Julliard julliard at winehq.org
Tue Oct 30 08:32:46 CDT 2007


Module: wine
Branch: master
Commit: a7d80730d666faabb4f0bafc59555241a9cda13b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7d80730d666faabb4f0bafc59555241a9cda13b

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Oct 29 21:51:02 2007 +0000

shell32: Constify some variables.

---

 dlls/shell32/shfldr_unixfs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c
index f780037..c18da27 100644
--- a/dlls/shell32/shfldr_unixfs.c
+++ b/dlls/shell32/shfldr_unixfs.c
@@ -356,8 +356,8 @@ cleanup:
  *  TRUE, if pIDL is accepted by fFilter
  *  FALSE, otherwise
  */
-static inline BOOL UNIXFS_is_pidl_of_type(LPITEMIDLIST pIDL, SHCONTF fFilter) {
-    LPPIDLDATA pIDLData = _ILGetDataPointer(pIDL);
+static inline BOOL UNIXFS_is_pidl_of_type(LPCITEMIDLIST pIDL, SHCONTF fFilter) {
+    const PIDLDATA *pIDLData = _ILGetDataPointer(pIDL);
     if (!(fFilter & SHCONTF_INCLUDEHIDDEN) && pIDLData && 
         (pIDLData->u.file.uFileAttribs & FILE_ATTRIBUTE_HIDDEN)) 
     {
@@ -1738,7 +1738,7 @@ static HRESULT WINAPI UnixFolder_ISFHelper_AddFolder(ISFHelper* iface, HWND hwnd
  * be converted, S_FALSE is returned. In such situation DeleteItems will try to delete
  * the files using syscalls
  */
-static HRESULT UNIXFS_delete_with_shfileop(UnixFolder *This, UINT cidl, LPCITEMIDLIST *apidl)
+static HRESULT UNIXFS_delete_with_shfileop(UnixFolder *This, UINT cidl, const LPCITEMIDLIST *apidl)
 {
     char szAbsolute[FILENAME_MAX], *pszRelative;
     LPWSTR wszPathsList, wszListPos;
@@ -1792,7 +1792,7 @@ static HRESULT UNIXFS_delete_with_shfileop(UnixFolder *This, UINT cidl, LPCITEMI
     return ret;
 }
 
-static HRESULT UNIXFS_delete_with_syscalls(UnixFolder *This, UINT cidl, LPCITEMIDLIST *apidl)
+static HRESULT UNIXFS_delete_with_syscalls(UnixFolder *This, UINT cidl, const LPCITEMIDLIST *apidl)
 {
     char szAbsolute[FILENAME_MAX], *pszRelative;
     static const WCHAR empty[] = {0};




More information about the wine-cvs mailing list