mmdevapi: Don't use invalid This pointer on static object.

This commit is contained in:
Andrew Eikum 2011-09-30 08:35:20 -05:00 committed by Alexandre Julliard
parent d41f6a6f02
commit 6adf21173c
1 changed files with 1 additions and 5 deletions

View File

@ -1236,14 +1236,10 @@ static ULONG WINAPI info_device_ps_Release(IPropertyStore *iface)
static HRESULT WINAPI info_device_ps_GetValue(IPropertyStore *iface,
REFPROPERTYKEY key, PROPVARIANT *pv)
{
MMDevPropStore *This = impl_from_IPropertyStore(iface);
TRACE("(%p)->(\"%s,%u\", %p)\n", This, debugstr_guid(&key->fmtid), key ? key->pid : 0, pv);
TRACE("(static)->(\"%s,%u\", %p)\n", debugstr_guid(&key->fmtid), key ? key->pid : 0, pv);
if (!key || !pv)
return E_POINTER;
if (This->access != STGM_READ
&& This->access != STGM_READWRITE)
return STG_E_ACCESSDENIED;
if (IsEqualPropertyKey(*key, DEVPKEY_Device_Driver))
{