From 6adf21173c21dfeffe85e9021978ac07885ff7f5 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 30 Sep 2011 08:35:20 -0500 Subject: [PATCH] mmdevapi: Don't use invalid This pointer on static object. --- dlls/mmdevapi/devenum.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c index bedd2e4e123..6b6cfb682f4 100644 --- a/dlls/mmdevapi/devenum.c +++ b/dlls/mmdevapi/devenum.c @@ -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)) {