mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 21:21:33 +00:00
[BROWSEUI] Move _ILIsDesktop to a shared header to avoid having 3 instances of it
This commit is contained in:
parent
9443165625
commit
d163627319
4 changed files with 5 additions and 29 deletions
|
@ -54,12 +54,6 @@ static BOOL _ILIsSpecialFolder (LPCITEMIDLIST pidl)
|
|||
PT_YAGUID == lpPData->type)) || (pidl && pidl->mkid.cb == 0x00)));
|
||||
}
|
||||
|
||||
static BOOL _ILIsDesktop (LPCITEMIDLIST pidl)
|
||||
{
|
||||
return (pidl && pidl->mkid.cb == 0x00);
|
||||
}
|
||||
|
||||
|
||||
HRESULT GetDisplayName(LPCITEMIDLIST pidlDirectory,TCHAR *szDisplayName,UINT cchMax,DWORD uFlags)
|
||||
{
|
||||
IShellFolder *pShellFolder = NULL;
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
extern inline BOOL _ILIsDesktop(LPCITEMIDLIST pidl)
|
||||
{
|
||||
return (pidl == NULL || pidl->mkid.cb == 0);
|
||||
}
|
||||
|
||||
class CBandSiteBase :
|
||||
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
||||
public IBandSite,
|
||||
|
|
|
@ -22,24 +22,6 @@ TODO:
|
|||
** Implement responding to theme change
|
||||
*/
|
||||
|
||||
|
||||
// ***Extras***
|
||||
/*++
|
||||
* @name _ILIsDesktop
|
||||
*
|
||||
* Checks whether the given PIDL is of Desktop folder or not.
|
||||
*
|
||||
* @param pidl
|
||||
* PIDL to be checked.
|
||||
*
|
||||
* @return True if PIDL is of Desktop, otherwise false.
|
||||
*
|
||||
*--*/
|
||||
static BOOL _ILIsDesktop(LPCITEMIDLIST pidl)
|
||||
{
|
||||
return (pidl == NULL || pidl->mkid.cb == 0);
|
||||
}
|
||||
|
||||
//*****************************************************************************************
|
||||
// *** CISFBand ***
|
||||
|
||||
|
|
|
@ -818,11 +818,6 @@ HRESULT CShellBrowser::BrowseToPIDL(LPCITEMIDLIST pidl, long flags)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
BOOL WINAPI _ILIsDesktop(LPCITEMIDLIST pidl)
|
||||
{
|
||||
return (pidl == NULL || pidl->mkid.cb == 0);
|
||||
}
|
||||
|
||||
BOOL WINAPI _ILIsPidlSimple(LPCITEMIDLIST pidl)
|
||||
{
|
||||
LPCITEMIDLIST pidlnext;
|
||||
|
|
Loading…
Reference in a new issue