Commit 29191436 authored by Alexandre Julliard's avatar Alexandre Julliard

mmdevapi: Use nameless unions/structs.

parent b5edd148
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <stdarg.h> #include <stdarg.h>
#define NONAMELESSUNION
#define COBJMACROS #define COBJMACROS
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
...@@ -1546,13 +1545,13 @@ static ULONG WINAPI PB_Release(IPropertyBag *iface) ...@@ -1546,13 +1545,13 @@ static ULONG WINAPI PB_Release(IPropertyBag *iface)
static HRESULT WINAPI PB_Read(IPropertyBag *iface, LPCOLESTR name, VARIANT *var, IErrorLog *log) static HRESULT WINAPI PB_Read(IPropertyBag *iface, LPCOLESTR name, VARIANT *var, IErrorLog *log)
{ {
IPropertyBagImpl *This = impl_from_IPropertyBag(iface); IPropertyBagImpl *This = impl_from_IPropertyBag(iface);
TRACE("Trying to read %s, type %u\n", debugstr_w(name), var->n1.n2.vt); TRACE("Trying to read %s, type %u\n", debugstr_w(name), var->vt);
if (!lstrcmpW(name, L"DSGuid")) if (!lstrcmpW(name, L"DSGuid"))
{ {
WCHAR guidstr[39]; WCHAR guidstr[39];
StringFromGUID2(&This->devguid, guidstr,ARRAY_SIZE(guidstr)); StringFromGUID2(&This->devguid, guidstr,ARRAY_SIZE(guidstr));
var->n1.n2.vt = VT_BSTR; var->vt = VT_BSTR;
var->n1.n2.n3.bstrVal = SysAllocString(guidstr); var->bstrVal = SysAllocString(guidstr);
return S_OK; return S_OK;
} }
ERR("Unknown property '%s' queried\n", debugstr_w(name)); ERR("Unknown property '%s' queried\n", debugstr_w(name));
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
*/ */
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h> #include <stdarg.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment