https://git.reactos.org/?p=reactos.git;a=commitdiff;h=64f40e7f309a9e497446846cc18c73633c5d7e0b

commit 64f40e7f309a9e497446846cc18c73633c5d7e0b
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sat Oct 28 17:50:26 2023 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sat Oct 28 17:50:26 2023 +0200

    [BROWSEUI] Fix MSVC compilation warning C4805
    
    internettoolbar.cpp(714): warning C4805: '!=': unsafe mix of type 'bool' 
and type 'BOOL' in operation
---
 dll/win32/browseui/internettoolbar.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dll/win32/browseui/internettoolbar.cpp 
b/dll/win32/browseui/internettoolbar.cpp
index b9d3b6273b7..226a637bc4f 100644
--- a/dll/win32/browseui/internettoolbar.cpp
+++ b/dll/win32/browseui/internettoolbar.cpp
@@ -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();
     }

Reply via email to