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:
Alistair Leslie-Hughes 2019-10-04 21:30:48 +02:00 committed by Alexandre Julliard
parent c6f818e9a6
commit 7d954f2335
1 changed files with 4 additions and 0 deletions

View File

@ -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);