Initialize the hkey member when creating the propery bag object.

This commit is contained in:
Christian Costa 2004-12-09 11:37:09 +00:00 committed by Alexandre Julliard
parent 033276b687
commit be82f977ce
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ static HRESULT DEVENUM_IPropertyBag_Construct(HANDLE hkey, IPropertyBag **ppBag)
return E_OUTOFMEMORY;
rpb->lpVtbl = &IPropertyBag_Vtbl;
rpb->ref = 1;
rpb->hkey = hkey;
*ppBag = (IPropertyBag*)rpb;
DEVENUM_LockModule();
return S_OK;