[vlc-commits] vout:win32: avoid variable shadowing

Steve Lhomme git at videolan.org
Fri Mar 29 17:31:30 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 10:01:23 2019 +0100| [a445588651d92651f5f1fa48ca7965c2eeb25ef3] | committer: Steve Lhomme

vout:win32: avoid variable shadowing

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

 modules/video_output/win32/events.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/modules/video_output/win32/events.c b/modules/video_output/win32/events.c
index 62c665e5e4..3038394267 100644
--- a/modules/video_output/win32/events.c
+++ b/modules/video_output/win32/events.c
@@ -801,15 +801,12 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
 
     if( p_event->hparent )
     {
-        LONG i_style;
-
         /* We don't want the window owner to overwrite our client area */
-        i_style = GetWindowLong( p_event->hparent, GWL_STYLE );
-
-        if( !(i_style & WS_CLIPCHILDREN) )
+        LONG  parent_style = GetWindowLong( p_event->hparent, GWL_STYLE );
+        if( !(parent_style & WS_CLIPCHILDREN) )
             /* Hmmm, apparently this is a blocking call... */
             SetWindowLong( p_event->hparent, GWL_STYLE,
-                           i_style | WS_CLIPCHILDREN );
+                           parent_style | WS_CLIPCHILDREN );
 
         /* Create our fullscreen window */
         p_event->hfswnd =



More information about the vlc-commits mailing list