shell32: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-09-10 23:09:58 +01:00 committed by Alexandre Julliard
parent 039beff441
commit c333402b7f
4 changed files with 4 additions and 4 deletions

View File

@ -179,7 +179,7 @@ static void InitializeTreeView( browse_info *info )
IShellFolder_Release(lpsfParent); IShellFolder_Release(lpsfParent);
} }
static int GetIcon(LPITEMIDLIST lpi, UINT uFlags) static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
{ {
SHFILEINFOW sfi; SHFILEINFOW sfi;
SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags); SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);

View File

@ -105,7 +105,7 @@ static const char * DumpEvent( LONG event )
#undef DUMPEV #undef DUMPEV
} }
static const char * NodeName(LPNOTIFICATIONLIST item) static const char * NodeName(const NOTIFICATIONLIST *item)
{ {
const char *str; const char *str;
WCHAR path[MAX_PATH]; WCHAR path[MAX_PATH];

View File

@ -917,7 +917,7 @@ static const IPersistFolder2Vtbl vt_PersistFolder2 =
ICPanel_PersistFolder2_GetCurFolder ICPanel_PersistFolder2_GetCurFolder
}; };
HRESULT CPanel_GetIconLocationW(LPITEMIDLIST pidl, HRESULT CPanel_GetIconLocationW(LPCITEMIDLIST pidl,
LPWSTR szIconFile, UINT cchMax, int* piIndex) LPWSTR szIconFile, UINT cchMax, int* piIndex)
{ {
PIDLCPanelStruct* pcpanel = _ILGetCPanelPointer(pidl); PIDLCPanelStruct* pcpanel = _ILGetCPanelPointer(pidl);

View File

@ -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 MyDocuments_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID *ppv);
HRESULT WINAPI RecycleBin_Constructor(IUnknown * pUnkOuter, REFIID riif, LPVOID *ppv); HRESULT WINAPI RecycleBin_Constructor(IUnknown * pUnkOuter, REFIID riif, LPVOID *ppv);
HRESULT WINAPI ShellFSFolder_Constructor(IUnknown * pUnkOuter, REFIID riid, 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_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); HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);