dmloader/tests: Test the return of CoCreateInstance (PVS-Studio).
This commit is contained in:
parent
4ffcae35d2
commit
9d52d8c07d
|
@ -47,6 +47,7 @@ static void test_release_object(void)
|
|||
IDirectMusicLoader8* loader = NULL;
|
||||
|
||||
hr = CoCreateInstance(&CLSID_DirectMusicLoader, NULL, CLSCTX_INPROC, &IID_IDirectMusicLoader8, (void**)&loader);
|
||||
ok(hr == S_OK, "Couldn't create Loader %08x\n", hr);
|
||||
|
||||
hr = IDirectMusicLoader_ReleaseObject(loader, NULL);
|
||||
ok(hr == E_POINTER, "Expected E_POINTER, received %#x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue