[BROWSEUI] Fix MSVC compilation warning C4805

internettoolbar.cpp(714): warning C4805: '!=': unsafe mix of type 'bool' and type 'BOOL' in operation
This commit is contained in:
Hermès Bélusca-Maïto 2023-10-28 17:50:26 +02:00
parent c9c6902f08
commit 64f40e7f30
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -711,9 +711,9 @@ HRESULT CInternetToolbar::CreateMenuBar(IShellMenu **pMenuBar)
HRESULT CInternetToolbar::LockUnlockToolbars(bool locked)
{
if (locked != pSettings->fLocked)
if (locked != !!pSettings->fLocked)
{
pSettings->fLocked = locked;
pSettings->fLocked = (BOOL)locked;
pSettings->Save();
RefreshLockedToolbarState();
}