[MSDVBNP]

- Fix crash when instantiating the filter with graphedt

svn path=/trunk/; revision=45749
This commit is contained in:
Johannes Anderwald 2010-03-01 20:00:26 +00:00
parent 97ba4cfa7e
commit f374476e03
2 changed files with 4 additions and 2 deletions

View file

@ -75,6 +75,8 @@ CNetworkProvider::QueryInterface(
IN REFIID refiid,
OUT PVOID* Output)
{
*Output = NULL;
if (IsEqualGUID(refiid, IID_IUnknown))
{
*Output = PVOID(this);
@ -359,7 +361,7 @@ CNetworkProvider_fnConstructor(
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 @@ CNetworkProvider_fnConstructor(
delete handler;
return E_NOINTERFACE;
}
OutputDebugStringW(L"CNetworkProvider_fnConstructor Success");
return NOERROR;
}

View file

@ -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: