Initialize the hkey member when creating the propery bag object.
This commit is contained in:
parent
033276b687
commit
be82f977ce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue