mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 12:06:32 +00:00
dmsynth/tests: Use nameless unions/structs.
This commit is contained in:
parent
af2bda32bb
commit
6fe186468c
1 changed files with 8 additions and 8 deletions
|
@ -108,30 +108,30 @@ static void test_dmsynth(void)
|
||||||
hr = IDirectMusicSynth_QueryInterface(dmsynth, &IID_IKsControl, (LPVOID*)&control_synth);
|
hr = IDirectMusicSynth_QueryInterface(dmsynth, &IID_IKsControl, (LPVOID*)&control_synth);
|
||||||
ok(hr == S_OK, "IDirectMusicSynth_QueryInterface returned: %#lx\n", hr);
|
ok(hr == S_OK, "IDirectMusicSynth_QueryInterface returned: %#lx\n", hr);
|
||||||
|
|
||||||
S(U(property)).Id = 0;
|
property.Id = 0;
|
||||||
S(U(property)).Flags = KSPROPERTY_TYPE_GET;
|
property.Flags = KSPROPERTY_TYPE_GET;
|
||||||
|
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_INSTRUMENT2;
|
property.Set = GUID_DMUS_PROP_INSTRUMENT2;
|
||||||
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
ok(value == TRUE, "Return value: %lu, should be 1\n", value);
|
ok(value == TRUE, "Return value: %lu, should be 1\n", value);
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_DLS2;
|
property.Set = GUID_DMUS_PROP_DLS2;
|
||||||
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
ok(value == TRUE, "Return value: %lu, should be 1\n", value);
|
ok(value == TRUE, "Return value: %lu, should be 1\n", value);
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_GM_Hardware;
|
property.Set = GUID_DMUS_PROP_GM_Hardware;
|
||||||
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
ok(value == FALSE, "Return value: %lu, should be 0\n", value);
|
ok(value == FALSE, "Return value: %lu, should be 0\n", value);
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_GS_Hardware;
|
property.Set = GUID_DMUS_PROP_GS_Hardware;
|
||||||
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
ok(value == FALSE, "Return value: %lu, should be 0\n", value);
|
ok(value == FALSE, "Return value: %lu, should be 0\n", value);
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_XG_Hardware;
|
property.Set = GUID_DMUS_PROP_XG_Hardware;
|
||||||
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_synth, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
|
@ -140,7 +140,7 @@ static void test_dmsynth(void)
|
||||||
hr = IDirectMusicSynthSink_QueryInterface(dmsynth_sink, &IID_IKsControl, (LPVOID*)&control_sink);
|
hr = IDirectMusicSynthSink_QueryInterface(dmsynth_sink, &IID_IKsControl, (LPVOID*)&control_sink);
|
||||||
ok(hr == S_OK, "IDirectMusicSynthSink_QueryInterface returned: %#lx\n", hr);
|
ok(hr == S_OK, "IDirectMusicSynthSink_QueryInterface returned: %#lx\n", hr);
|
||||||
|
|
||||||
S(U(property)).Set = GUID_DMUS_PROP_SinkUsesDSound;
|
property.Set = GUID_DMUS_PROP_SinkUsesDSound;
|
||||||
hr = IKsControl_KsProperty(control_sink, &property, sizeof(property), &value, sizeof(value), &bytes);
|
hr = IKsControl_KsProperty(control_sink, &property, sizeof(property), &value, sizeof(value), &bytes);
|
||||||
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
ok(hr == S_OK, "IKsControl_KsProperty returned: %#lx\n", hr);
|
||||||
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
ok(bytes == sizeof(DWORD), "Returned bytes: %lu, should be 4\n", bytes);
|
||||||
|
|
Loading…
Reference in a new issue