devenum: Reset moniker pointer before calling IFilterMapper2_RegisterFilter.

This commit is contained in:
Christian Costa 2012-03-12 19:52:30 +01:00 committed by Alexandre Julliard
parent abc6d186ea
commit a85957ae0e
1 changed files with 5 additions and 2 deletions

View File

@ -670,8 +670,11 @@ static HRESULT DEVENUM_CreateSpecialCategories(void)
/* FIXME: do additional stuff with IMoniker here, depending on what RegisterFilter does */ /* FIXME: do additional stuff with IMoniker here, depending on what RegisterFilter does */
if (pMoniker) if (pMoniker)
IMoniker_Release(pMoniker); {
IMoniker_Release(pMoniker);
pMoniker = NULL;
}
wsprintfW(szDSoundName, szDSoundNameFormat, wocaps.szPname); wsprintfW(szDSoundName, szDSoundNameFormat, wocaps.szPname);
res = IFilterMapper2_RegisterFilter(pMapper, res = IFilterMapper2_RegisterFilter(pMapper,