Author: janderwald
Date: Mon Mar 1 21:00:26 2010
New Revision: 45749
URL:
http://svn.reactos.org/svn/reactos?rev=45749&view=rev
Log:
[MSDVBNP]
- Fix crash when instantiating the filter with graphedt
Modified:
trunk/reactos/dll/directx/msdvbnp/networkprovider.cpp
trunk/reactos/dll/directx/msdvbnp/pin.cpp
Modified: trunk/reactos/dll/directx/msdvbnp/networkprovider.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/msdvbnp/networ…
==============================================================================
--- trunk/reactos/dll/directx/msdvbnp/networkprovider.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/msdvbnp/networkprovider.cpp [iso-8859-1] Mon Mar 1 21:00:26
2010
@@ -75,6 +75,8 @@
IN REFIID refiid,
OUT PVOID* Output)
{
+ *Output = NULL;
+
if (IsEqualGUID(refiid, IID_IUnknown))
{
*Output = PVOID(this);
@@ -359,7 +361,7 @@
WCHAR Buffer[MAX_PATH];
LPOLESTR lpstr;
StringFromCLSID(riid, &lpstr);
- swprintf(Buffer, L"CNetworkProvider_fnConstructor riid %s pUnknown %p",
lpstr, pUnknown);
+ swprintf(Buffer, L"CNetworkProvider_fnConstructor riid %s pUnknown %p\n",
lpstr, pUnknown);
OutputDebugStringW(Buffer);
#endif
@@ -372,6 +374,5 @@
delete handler;
return E_NOINTERFACE;
}
- OutputDebugStringW(L"CNetworkProvider_fnConstructor Success");
return NOERROR;
}
Modified: trunk/reactos/dll/directx/msdvbnp/pin.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/msdvbnp/pin.cp…
==============================================================================
--- trunk/reactos/dll/directx/msdvbnp/pin.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/msdvbnp/pin.cpp [iso-8859-1] Mon Mar 1 21:00:26 2010
@@ -10,6 +10,7 @@
const GUID KSDATAFORMAT_TYPE_BDA_ANTENNA = {0x71985f41, 0x1ca1, 0x11d3, {0x9c, 0xc8, 0x0,
0xc0, 0x4f, 0x79, 0x71, 0xe0}};
const GUID GUID_NULL = {0x00000000L, 0x0000, 0x0000, {0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
+
class CPin : public IPin
{
public: