npapi-vlc | branch: master | Sergey Radionov <[email protected]> | Thu Feb 16 
14:35:07 2012 +0700| [52a881518d1ef68bb52d600a71816408c8b1c519] | committer: 
Jean-Baptiste Kempf

ActiveX: "design mode" returned

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 activex/plugin.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/activex/plugin.cpp b/activex/plugin.cpp
index e055cbf..05922b2 100644
--- a/activex/plugin.cpp
+++ b/activex/plugin.cpp
@@ -740,7 +740,9 @@ HRESULT VLCPlugin::onActivateInPlace(LPMSG, HWND 
hwndParent, LPCRECT lprcPosRect
     HRGN clipRgn = CreateRectRgnIndirect(&clipRect);
     SetWindowRgn(_inplacewnd, clipRgn, TRUE);
 
-    _WindowsManager.CreateWindows(this->getInPlaceWindow());
+    if( isUserMode() ) {
+        _WindowsManager.CreateWindows(this->getInPlaceWindow());
+    }
 
     if( _b_usermode )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to