dmime/tests: Break out of loop if we fail to get segment pointer.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6f818e9a6
commit
7d954f2335
|
@ -454,6 +454,10 @@ static void test_notification_type(void)
|
|||
|
||||
hr = IDirectMusicSegmentState8_GetSegment(segmentstate, &segment);
|
||||
ok(hr == S_OK, "Failed: %08x\n", hr);
|
||||
if (FAILED(hr)) {
|
||||
IDirectMusicSegmentState8_Release(segmentstate);
|
||||
break;
|
||||
}
|
||||
|
||||
hr = IDirectMusicSegment_QueryInterface(segment, &IID_IDirectMusicSegment8, (void**)&segment8);
|
||||
ok(hr == S_OK, "Failed: %08x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue