mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[BROWSEUI] Fix MSVC warning about unary minus operator
basebarsite.cpp(536): warning C4146: unary minus operator applied to unsigned type, result still unsigned
This commit is contained in:
@@ -533,7 +533,7 @@ HRESULT STDMETHODCALLTYPE CBaseBarSite::EnumBands(UINT uBand, DWORD *pdwBandID)
|
||||
{
|
||||
REBARBANDINFO bandInfo;
|
||||
|
||||
if (uBand == -1ul)
|
||||
if (uBand == UINT_MAX)
|
||||
return (HRESULT)SendMessage(RB_GETBANDCOUNT, 0, 0);
|
||||
if (pdwBandID == NULL)
|
||||
return E_INVALIDARG;
|
||||
|
||||
Reference in New Issue
Block a user