Mark Harmstone : mmdevapi: Do nothing on property store Commit.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 3 10:01:12 CST 2015


Module: wine
Branch: master
Commit: e20307099f99a74b5d6ec327db52d5d24aa35f7b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e20307099f99a74b5d6ec327db52d5d24aa35f7b

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Mon Feb  2 18:03:54 2015 +0000

mmdevapi: Do nothing on property store Commit.

---

 dlls/mmdevapi/devenum.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c
index 9a27520..a78e03d 100644
--- a/dlls/mmdevapi/devenum.c
+++ b/dlls/mmdevapi/devenum.c
@@ -1469,8 +1469,17 @@ static HRESULT WINAPI MMDevPropStore_SetValue(IPropertyStore *iface, REFPROPERTY
 
 static HRESULT WINAPI MMDevPropStore_Commit(IPropertyStore *iface)
 {
-    FIXME("stub\n");
-    return E_NOTIMPL;
+    MMDevPropStore *This = impl_from_IPropertyStore(iface);
+    TRACE("(%p)\n", iface);
+
+    if (This->access != STGM_WRITE
+        && This->access != STGM_READWRITE)
+        return STG_E_ACCESSDENIED;
+
+    /* Does nothing - for mmdevapi, the propstore values are written on SetValue,
+     * not on Commit. */
+
+    return S_OK;
 }
 
 static const IPropertyStoreVtbl MMDevPropVtbl =




More information about the wine-cvs mailing list