]> git.sesse.net Git - vlc/commitdiff
Fix for a synchronization problem when a checkbox has 2 identical events
authorOlivier Teulière <ipkiss@videolan.org>
Tue, 28 Oct 2003 07:17:45 +0000 (07:17 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Tue, 28 Oct 2003 07:17:45 +0000 (07:17 +0000)
modules/gui/skins/win32/win32_event.cpp

index a1c200b281ddcbb828188ac49cb29b96b61f8c42..4b2927756878e9735aec4dccd78ce1479245b43c 100644 (file)
@@ -2,7 +2,7 @@
  * win32_event.cpp: Win32 implementation of the Event class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: win32_event.cpp,v 1.5 2003/04/21 21:51:16 asmax Exp $
+ * $Id: win32_event.cpp,v 1.6 2003/10/28 07:17:45 ipkiss Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -72,7 +72,10 @@ bool Win32Event::SendEvent()
     if( Message != VLC_NOTHING )
     {
         PostMessage( hWnd, Message, Param1, Param2 );
-        PostSynchroMessage();
+        if( hWnd )
+        {
+            PostSynchroMessage();
+        }
         return true;
     }