Andrew Talbot : shell32: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 11 07:28:47 CDT 2007
Module: wine
Branch: master
Commit: c333402b7f8f2657ee11e8380431c20861afd04c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c333402b7f8f2657ee11e8380431c20861afd04c
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Mon Sep 10 23:09:58 2007 +0100
shell32: Constify some variables.
---
dlls/shell32/brsfolder.c | 2 +-
dlls/shell32/changenotify.c | 2 +-
dlls/shell32/cpanelfolder.c | 2 +-
dlls/shell32/shell32_main.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index ff5c1f0..7f73bec 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -179,7 +179,7 @@ static void InitializeTreeView( browse_info *info )
IShellFolder_Release(lpsfParent);
}
-static int GetIcon(LPITEMIDLIST lpi, UINT uFlags)
+static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
{
SHFILEINFOW sfi;
SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);
diff --git a/dlls/shell32/changenotify.c b/dlls/shell32/changenotify.c
index 9f827eb..c88ca1f 100644
--- a/dlls/shell32/changenotify.c
+++ b/dlls/shell32/changenotify.c
@@ -105,7 +105,7 @@ static const char * DumpEvent( LONG event )
#undef DUMPEV
}
-static const char * NodeName(LPNOTIFICATIONLIST item)
+static const char * NodeName(const NOTIFICATIONLIST *item)
{
const char *str;
WCHAR path[MAX_PATH];
diff --git a/dlls/shell32/cpanelfolder.c b/dlls/shell32/cpanelfolder.c
index fef45b5..aa09edf 100644
--- a/dlls/shell32/cpanelfolder.c
+++ b/dlls/shell32/cpanelfolder.c
@@ -917,7 +917,7 @@ static const IPersistFolder2Vtbl vt_PersistFolder2 =
ICPanel_PersistFolder2_GetCurFolder
};
-HRESULT CPanel_GetIconLocationW(LPITEMIDLIST pidl,
+HRESULT CPanel_GetIconLocationW(LPCITEMIDLIST pidl,
LPWSTR szIconFile, UINT cchMax, int* piIndex)
{
PIDLCPanelStruct* pcpanel = _ILGetCPanelPointer(pidl);
diff --git a/dlls/shell32/shell32_main.h b/dlls/shell32/shell32_main.h
index c974c8e..f5fcf37 100644
--- a/dlls/shell32/shell32_main.h
+++ b/dlls/shell32/shell32_main.h
@@ -99,7 +99,7 @@ HRESULT WINAPI FolderShortcut_Constructor(IUnknown * pUnkOuter, REFIID riid, LPV
HRESULT WINAPI MyDocuments_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID *ppv);
HRESULT WINAPI RecycleBin_Constructor(IUnknown * pUnkOuter, REFIID riif, LPVOID *ppv);
HRESULT WINAPI ShellFSFolder_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID *ppv);
-extern HRESULT CPanel_GetIconLocationW(LPITEMIDLIST, LPWSTR, UINT, int*);
+extern HRESULT CPanel_GetIconLocationW(LPCITEMIDLIST, LPWSTR, UINT, int*);
HRESULT WINAPI CPanel_ExtractIconA(LPITEMIDLIST pidl, LPCSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
More information about the wine-cvs
mailing list