Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2bf29480
Commit
2bf29480
authored
Jul 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Use nameless unions/structs.
parent
e0dd29ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
synth.c
dlls/dmsynth/synth.c
+9
-12
synthsink.c
dlls/dmsynth/synthsink.c
+5
-7
No files found.
dlls/dmsynth/synth.c
View file @
2bf29480
...
...
@@ -20,9 +20,6 @@
*/
#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "objbase.h"
#include "initguid.h"
#include "dmksctrl.h"
...
...
@@ -656,45 +653,45 @@ static HRESULT WINAPI DMSynthImpl_IKsControl_KsProperty(IKsControl* iface, PKSPR
{
TRACE
(
"(%p, %p, %lu, %p, %lu, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"Property = %s - %lu - %lu
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
TRACE
(
"Property = %s - %lu - %lu
\n
"
,
debugstr_guid
(
&
Property
->
Set
),
Property
->
Id
,
Property
->
Flags
);
if
(
Property
->
u
.
s
.
Flags
!=
KSPROPERTY_TYPE_GET
)
if
(
Property
->
Flags
!=
KSPROPERTY_TYPE_GET
)
{
FIXME
(
"Property flags %lu not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
FIXME
(
"Property flags %lu not yet supported
\n
"
,
Property
->
Flags
);
return
S_FALSE
;
}
if
(
DataLength
<
sizeof
(
DWORD
))
return
E_NOT_SUFFICIENT_BUFFER
;
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_INSTRUMENT2
))
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_INSTRUMENT2
))
{
*
(
DWORD
*
)
PropertyData
=
TRUE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_DLS2
))
else
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_DLS2
))
{
*
(
DWORD
*
)
PropertyData
=
TRUE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_GM_Hardware
))
else
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_GM_Hardware
))
{
*
(
DWORD
*
)
PropertyData
=
FALSE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_GS_Hardware
))
else
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_GS_Hardware
))
{
*
(
DWORD
*
)
PropertyData
=
FALSE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_XG_Hardware
))
else
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_XG_Hardware
))
{
*
(
DWORD
*
)
PropertyData
=
FALSE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
{
FIXME
(
"Unknown property %s
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
));
FIXME
(
"Unknown property %s
\n
"
,
debugstr_guid
(
&
Property
->
Set
));
*
(
DWORD
*
)
PropertyData
=
FALSE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
...
...
dlls/dmsynth/synthsink.c
View file @
2bf29480
...
...
@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "dmsynth_private.h"
#include "initguid.h"
#include "uuids.h"
...
...
@@ -245,25 +243,25 @@ static HRESULT WINAPI DMSynthSinkImpl_IKsControl_KsProperty(IKsControl* iface, P
{
TRACE
(
"(%p, %p, %lu, %p, %lu, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"Property = %s - %lu - %lu
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
TRACE
(
"Property = %s - %lu - %lu
\n
"
,
debugstr_guid
(
&
Property
->
Set
),
Property
->
Id
,
Property
->
Flags
);
if
(
Property
->
u
.
s
.
Flags
!=
KSPROPERTY_TYPE_GET
)
if
(
Property
->
Flags
!=
KSPROPERTY_TYPE_GET
)
{
FIXME
(
"Property flags %lu not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
FIXME
(
"Property flags %lu not yet supported
\n
"
,
Property
->
Flags
);
return
S_FALSE
;
}
if
(
DataLength
<
sizeof
(
DWORD
))
return
E_NOT_SUFFICIENT_BUFFER
;
if
(
IsEqualGUID
(
&
Property
->
u
.
s
.
Set
,
&
GUID_DMUS_PROP_SinkUsesDSound
))
if
(
IsEqualGUID
(
&
Property
->
Set
,
&
GUID_DMUS_PROP_SinkUsesDSound
))
{
*
(
DWORD
*
)
PropertyData
=
TRUE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
else
{
FIXME
(
"Unknown property %s
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
));
FIXME
(
"Unknown property %s
\n
"
,
debugstr_guid
(
&
Property
->
Set
));
*
(
DWORD
*
)
PropertyData
=
FALSE
;
*
BytesReturned
=
sizeof
(
DWORD
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment