mmdevapi: Fix build with MSVC.

Thomas Faber thomas.faber at reactos.org
Mon Sep 30 07:15:21 CDT 2013


From 1b9baef3d14578301ab700bb8b7258fbad5634b2 Mon Sep 17 00:00:00 2001
From: Thomas Faber <thomas.faber at reactos.org>
Date: Mon, 30 Sep 2013 14:13:13 +0200
Subject: mmdevapi: Fix build with MSVC.

---
 dlls/mmdevapi/devenum.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c
index 21a3530..eebf4ed 100644
--- a/dlls/mmdevapi/devenum.c
+++ b/dlls/mmdevapi/devenum.c
@@ -569,7 +569,8 @@ static HRESULT WINAPI MMDevice_Activate(IMMDevice *iface, REFIID riid, DWORD cls
             {
                 /* ::Load cannot assume the interface stays alive after the function returns,
                  * so just create the interface on the stack, saves a lot of complicated code */
-                IPropertyBagImpl bag = { { &PB_Vtbl }, This->devguid };
+                IPropertyBagImpl bag = { { &PB_Vtbl } };
+                bag.devguid = This->devguid;
                 hr = IPersistPropertyBag_Load(ppb, &bag.IPropertyBag_iface, NULL);
                 IPersistPropertyBag_Release(ppb);
                 if (FAILED(hr))
-- 
1.7.11.msysgit.1


More information about the wine-patches mailing list