mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 12:06:32 +00:00
quartz/tests: Win64 printf format warning fixes.
This commit is contained in:
parent
14c551bc3a
commit
44e65a0fac
3 changed files with 15 additions and 16 deletions
|
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
|||
TESTDLL = quartz.dll
|
||||
IMPORTS = ole32 user32 gdi32 kernel32
|
||||
EXTRALIBS = -lstrmiids
|
||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
||||
|
||||
CTESTS = \
|
||||
filtergraph.c \
|
||||
|
|
|
@ -42,7 +42,7 @@ static void renderfile(void)
|
|||
HRESULT hr;
|
||||
|
||||
hr = IGraphBuilder_RenderFile(pgraph, file, NULL);
|
||||
ok(hr==S_OK, "RenderFile returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "RenderFile returned: %x\n", hr);
|
||||
}
|
||||
|
||||
static void rungraph(void)
|
||||
|
@ -53,28 +53,28 @@ static void rungraph(void)
|
|||
HANDLE hEvent;
|
||||
|
||||
hr = IGraphBuilder_QueryInterface(pgraph, &IID_IMediaControl, (LPVOID*)&pmc);
|
||||
ok(hr==S_OK, "Cannot get IMediaControl interface returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Cannot get IMediaControl interface returned: %x\n", hr);
|
||||
|
||||
hr = IMediaControl_Run(pmc);
|
||||
ok(hr==S_FALSE, "Cannot run the graph returned: %lx\n", hr);
|
||||
ok(hr==S_FALSE, "Cannot run the graph returned: %x\n", hr);
|
||||
|
||||
hr = IGraphBuilder_QueryInterface(pgraph, &IID_IMediaEvent, (LPVOID*)&pme);
|
||||
ok(hr==S_OK, "Cannot get IMediaEvent interface returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Cannot get IMediaEvent interface returned: %x\n", hr);
|
||||
|
||||
hr = IMediaEvent_GetEventHandle(pme, (OAEVENT*)&hEvent);
|
||||
ok(hr==S_OK, "Cannot get event handle returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Cannot get event handle returned: %x\n", hr);
|
||||
|
||||
/* WaitForSingleObject(hEvent, INFINITE); */
|
||||
Sleep(20000);
|
||||
|
||||
hr = IMediaControl_Release(pme);
|
||||
ok(hr==2, "Releasing mediaevent returned: %lx\n", hr);
|
||||
ok(hr==2, "Releasing mediaevent returned: %x\n", hr);
|
||||
|
||||
hr = IMediaControl_Stop(pmc);
|
||||
ok(hr==S_OK, "Cannot stop the graph returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Cannot stop the graph returned: %x\n", hr);
|
||||
|
||||
hr = IMediaControl_Release(pmc);
|
||||
ok(hr==1, "Releasing mediacontrol returned: %lx\n", hr);
|
||||
ok(hr==1, "Releasing mediacontrol returned: %x\n", hr);
|
||||
}
|
||||
|
||||
static void releasefiltergraph(void)
|
||||
|
@ -82,7 +82,7 @@ static void releasefiltergraph(void)
|
|||
HRESULT hr;
|
||||
|
||||
hr = IGraphBuilder_Release(pgraph);
|
||||
ok(hr==0, "Releasing filtergraph returned: %lx\n", hr);
|
||||
ok(hr==0, "Releasing filtergraph returned: %x\n", hr);
|
||||
}
|
||||
|
||||
START_TEST(filtergraph)
|
||||
|
|
|
@ -33,7 +33,7 @@ static void CommitDecommitTest(void)
|
|||
HRESULT hr;
|
||||
|
||||
hr = CoCreateInstance(&CLSID_MemoryAllocator, NULL, CLSCTX_INPROC_SERVER, &IID_IMemAllocator, (LPVOID*)&pMemAllocator);
|
||||
ok(hr==S_OK, "Unable to create memory allocator %lx\n", hr);
|
||||
ok(hr==S_OK, "Unable to create memory allocator %x\n", hr);
|
||||
|
||||
if (hr == S_OK)
|
||||
{
|
||||
|
@ -46,17 +46,17 @@ static void CommitDecommitTest(void)
|
|||
RequestedProps.cbPrefix = 0;
|
||||
|
||||
hr = IMemAllocator_SetProperties(pMemAllocator, &RequestedProps, &ActualProps);
|
||||
ok(hr==S_OK, "SetProperties returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "SetProperties returned: %x\n", hr);
|
||||
|
||||
hr = IMemAllocator_Commit(pMemAllocator);
|
||||
ok(hr==S_OK, "Commit returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Commit returned: %x\n", hr);
|
||||
hr = IMemAllocator_Commit(pMemAllocator);
|
||||
ok(hr==S_OK, "Commit returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Commit returned: %x\n", hr);
|
||||
|
||||
hr = IMemAllocator_Decommit(pMemAllocator);
|
||||
ok(hr==S_OK, "Decommit returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Decommit returned: %x\n", hr);
|
||||
hr = IMemAllocator_Decommit(pMemAllocator);
|
||||
ok(hr==S_OK, "Cecommit returned: %lx\n", hr);
|
||||
ok(hr==S_OK, "Cecommit returned: %x\n", hr);
|
||||
|
||||
IMemAllocator_Release(pMemAllocator);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue