From 167d383f8ef1b52ef42373125ebf3daf2ad84418 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Mon, 16 Jul 2012 17:56:50 +0000 Subject: PVS Studio warning: Cast from false to int --- nGenEx/ActiveWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nGenEx/ActiveWindow.cpp') diff --git a/nGenEx/ActiveWindow.cpp b/nGenEx/ActiveWindow.cpp index cf76063..145b29e 100644 --- a/nGenEx/ActiveWindow.cpp +++ b/nGenEx/ActiveWindow.cpp @@ -930,14 +930,14 @@ ActiveWindow::GetCapture() // +--------------------------------------------------------------------+ -int +bool ActiveWindow::SetCapture() { EventDispatch* dispatch = EventDispatch::GetInstance(); if (dispatch) - return dispatch->CaptureMouse(this); + return dispatch->CaptureMouse(this) == 1; - return 0; + return false; } // +--------------------------------------------------------------------+ -- cgit v1.1