]> git.sesse.net Git - vlc/blobdiff - activex/provideclassinfo.cpp
Avoid \r\n problems between platforms
[vlc] / activex / provideclassinfo.cpp
index 4d71080f85890b6f14dd2f61652e39c005ffd6df..fdef4456242e91d5857d3d9f676cc628f2bd19bf 100644 (file)
@@ -1,60 +1,60 @@
-/*****************************************************************************\r
- * provideclassinfo.cpp: ActiveX control for VLC\r
- *****************************************************************************\r
- * Copyright (C) 2005 VideoLAN\r
- *\r
- * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with this program; if not, write to the Free Software\r
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.\r
- *****************************************************************************/\r
-\r
-#include "plugin.h"\r
-#include "provideclassinfo.h"\r
-\r
-using namespace std;\r
-\r
-STDMETHODIMP VLCProvideClassInfo::GetClassInfo(ITypeInfo **ppTI)\r
-{\r
-    ITypeLib *p_typelib;\r
-\r
-    if( NULL == ppTI )\r
-        return E_POINTER;\r
-\r
-    HRESULT hr = _p_instance->getTypeLib(LOCALE_NEUTRAL, &p_typelib);\r
-    if( SUCCEEDED(hr) )\r
-    {\r
-        hr = p_typelib->GetTypeInfoOfGuid(_p_instance->getClassID(), ppTI);\r
-        if( FAILED(hr) )\r
-        {\r
-            *ppTI = NULL;\r
-        }\r
-        p_typelib->Release();\r
-    }\r
-    return hr;\r
-};\r
-\r
-STDMETHODIMP VLCProvideClassInfo::GetGUID(DWORD dwGuidKind, GUID *pGUID)\r
-{\r
-    if( GUIDKIND_DEFAULT_SOURCE_DISP_IID != dwGuidKind )\r
-        return E_INVALIDARG;\r
-\r
-    if( NULL == pGUID )\r
-        return E_POINTER;\r
-\r
-    *pGUID = _p_instance->getDispEventID();\r
-\r
-    return S_OK;\r
-};\r
-\r
+/*****************************************************************************
+ * provideclassinfo.cpp: ActiveX control for VLC
+ *****************************************************************************
+ * Copyright (C) 2005 VideoLAN
+ *
+ * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *****************************************************************************/
+
+#include "plugin.h"
+#include "provideclassinfo.h"
+
+using namespace std;
+
+STDMETHODIMP VLCProvideClassInfo::GetClassInfo(ITypeInfo **ppTI)
+{
+    ITypeLib *p_typelib;
+
+    if( NULL == ppTI )
+        return E_POINTER;
+
+    HRESULT hr = _p_instance->getTypeLib(LOCALE_NEUTRAL, &p_typelib);
+    if( SUCCEEDED(hr) )
+    {
+        hr = p_typelib->GetTypeInfoOfGuid(_p_instance->getClassID(), ppTI);
+        if( FAILED(hr) )
+        {
+            *ppTI = NULL;
+        }
+        p_typelib->Release();
+    }
+    return hr;
+};
+
+STDMETHODIMP VLCProvideClassInfo::GetGUID(DWORD dwGuidKind, GUID *pGUID)
+{
+    if( GUIDKIND_DEFAULT_SOURCE_DISP_IID != dwGuidKind )
+        return E_INVALIDARG;
+
+    if( NULL == pGUID )
+        return E_POINTER;
+
+    *pGUID = _p_instance->getDispEventID();
+
+    return S_OK;
+};
+