Commit 44e65a0f authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

quartz/tests: Win64 printf format warning fixes.

parent 14c551bc
...@@ -5,7 +5,6 @@ VPATH = @srcdir@ ...@@ -5,7 +5,6 @@ VPATH = @srcdir@
TESTDLL = quartz.dll TESTDLL = quartz.dll
IMPORTS = ole32 user32 gdi32 kernel32 IMPORTS = ole32 user32 gdi32 kernel32
EXTRALIBS = -lstrmiids EXTRALIBS = -lstrmiids
EXTRADEFS = -DWINE_NO_LONG_AS_INT
CTESTS = \ CTESTS = \
filtergraph.c \ filtergraph.c \
......
...@@ -42,7 +42,7 @@ static void renderfile(void) ...@@ -42,7 +42,7 @@ static void renderfile(void)
HRESULT hr; HRESULT hr;
hr = IGraphBuilder_RenderFile(pgraph, file, NULL); 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) static void rungraph(void)
...@@ -53,28 +53,28 @@ static void rungraph(void) ...@@ -53,28 +53,28 @@ static void rungraph(void)
HANDLE hEvent; HANDLE hEvent;
hr = IGraphBuilder_QueryInterface(pgraph, &IID_IMediaControl, (LPVOID*)&pmc); 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); 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); 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); 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); */ /* WaitForSingleObject(hEvent, INFINITE); */
Sleep(20000); Sleep(20000);
hr = IMediaControl_Release(pme); 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); 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); 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) static void releasefiltergraph(void)
...@@ -82,7 +82,7 @@ static void releasefiltergraph(void) ...@@ -82,7 +82,7 @@ static void releasefiltergraph(void)
HRESULT hr; HRESULT hr;
hr = IGraphBuilder_Release(pgraph); 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) START_TEST(filtergraph)
......
...@@ -33,7 +33,7 @@ static void CommitDecommitTest(void) ...@@ -33,7 +33,7 @@ static void CommitDecommitTest(void)
HRESULT hr; HRESULT hr;
hr = CoCreateInstance(&CLSID_MemoryAllocator, NULL, CLSCTX_INPROC_SERVER, &IID_IMemAllocator, (LPVOID*)&pMemAllocator); 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) if (hr == S_OK)
{ {
...@@ -46,17 +46,17 @@ static void CommitDecommitTest(void) ...@@ -46,17 +46,17 @@ static void CommitDecommitTest(void)
RequestedProps.cbPrefix = 0; RequestedProps.cbPrefix = 0;
hr = IMemAllocator_SetProperties(pMemAllocator, &RequestedProps, &ActualProps); 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); 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); 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); 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); 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); IMemAllocator_Release(pMemAllocator);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment