shell32: Avoid checking for <0 for unsigned variables.
This commit is contained in:
parent
c7adf5f4b2
commit
e403292e5a
|
@ -381,7 +381,7 @@ static HRESULT WINAPI RecycleBin_GetDefaultColumnState(IShellFolder2 *iface, UIN
|
|||
{
|
||||
RecycleBin *This = (RecycleBin *)iface;
|
||||
TRACE("(%p, %d, %p)\n", This, iColumn, pcsFlags);
|
||||
if (iColumn < 0 || iColumn >= COLUMNS_COUNT)
|
||||
if (iColumn >= COLUMNS_COUNT)
|
||||
return E_INVALIDARG;
|
||||
*pcsFlags = RecycleBinColumns[iColumn].pcsFlags;
|
||||
return S_OK;
|
||||
|
@ -400,7 +400,7 @@ static HRESULT WINAPI RecycleBin_GetDetailsOf(IShellFolder2 *iface, LPCITEMIDLIS
|
|||
WCHAR buffer[MAX_PATH];
|
||||
|
||||
TRACE("(%p, %p, %d, %p)\n", This, pidl, iColumn, pDetails);
|
||||
if (iColumn < 0 || iColumn >= COLUMNS_COUNT)
|
||||
if (iColumn >= COLUMNS_COUNT)
|
||||
return E_FAIL;
|
||||
pDetails->fmt = RecycleBinColumns[iColumn].fmt;
|
||||
pDetails->cxChar = RecycleBinColumns[iColumn].cxChars;
|
||||
|
@ -446,7 +446,7 @@ static HRESULT WINAPI RecycleBin_MapColumnToSCID(IShellFolder2 *iface, UINT iCol
|
|||
{
|
||||
RecycleBin *This = (RecycleBin *)iface;
|
||||
TRACE("(%p, %d, %p)\n", This, iColumn, pscid);
|
||||
if (iColumn<0 || iColumn>=COLUMNS_COUNT)
|
||||
if (iColumn>=COLUMNS_COUNT)
|
||||
return E_INVALIDARG;
|
||||
pscid->fmtid = *RecycleBinColumns[iColumn].fmtId;
|
||||
pscid->pid = RecycleBinColumns[iColumn].pid;
|
||||
|
|
Loading…
Reference in New Issue