[vlc-commits] win32_fullscreen: Remove useless check

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 21 10:16:30 CEST 2015


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr 17 15:06:50 2015 +0200| [49f73bb0fc7a71cd083abb0f6e90b75aa5d1dfd9] | committer: Hugo Beauzée-Luyssen

win32_fullscreen: Remove useless check

Fix cid #59963
IsFullscreen() will only return true if _FSWnd is non null

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=49f73bb0fc7a71cd083abb0f6e90b75aa5d1dfd9
---

 common/win32_fullscreen.cpp |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 96a1a72..bd83060 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -880,10 +880,8 @@ void VLCWindowsManager::EndFullScreen()
 
         ShowWindow(_FSWnd->getHWND(), SW_HIDE);
 
-        if(_FSWnd){
-            _FSWnd->DestroyWindow();
-        }
-        _FSWnd = 0;
+        _FSWnd->DestroyWindow();
+        _FSWnd = nullptr;
    }
 }
 



More information about the vlc-commits mailing list