Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
44e65a0f
Commit
44e65a0f
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Win64 printf format warning fixes.
parent
14c551bc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
Makefile.in
dlls/quartz/tests/Makefile.in
+0
-1
filtergraph.c
dlls/quartz/tests/filtergraph.c
+9
-9
memallocator.c
dlls/quartz/tests/memallocator.c
+6
-6
No files found.
dlls/quartz/tests/Makefile.in
View file @
44e65a0f
...
...
@@ -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
\
...
...
dlls/quartz/tests/filtergraph.c
View file @
44e65a0f
...
...
@@ -42,7 +42,7 @@ static void renderfile(void)
HRESULT
hr
;
hr
=
IGraphBuilder_RenderFile
(
pgraph
,
file
,
NULL
);
ok
(
hr
==
S_OK
,
"RenderFile returned: %
l
x
\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: %
l
x
\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: %
l
x
\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: %
l
x
\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: %
l
x
\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: %
l
x
\n
"
,
hr
);
ok
(
hr
==
2
,
"Releasing mediaevent returned: %x
\n
"
,
hr
);
hr
=
IMediaControl_Stop
(
pmc
);
ok
(
hr
==
S_OK
,
"Cannot stop the graph returned: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Cannot stop the graph returned: %x
\n
"
,
hr
);
hr
=
IMediaControl_Release
(
pmc
);
ok
(
hr
==
1
,
"Releasing mediacontrol returned: %
l
x
\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: %
l
x
\n
"
,
hr
);
ok
(
hr
==
0
,
"Releasing filtergraph returned: %x
\n
"
,
hr
);
}
START_TEST
(
filtergraph
)
...
...
dlls/quartz/tests/memallocator.c
View file @
44e65a0f
...
...
@@ -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 %
l
x
\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: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SetProperties returned: %x
\n
"
,
hr
);
hr
=
IMemAllocator_Commit
(
pMemAllocator
);
ok
(
hr
==
S_OK
,
"Commit returned: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Commit returned: %x
\n
"
,
hr
);
hr
=
IMemAllocator_Commit
(
pMemAllocator
);
ok
(
hr
==
S_OK
,
"Commit returned: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Commit returned: %x
\n
"
,
hr
);
hr
=
IMemAllocator_Decommit
(
pMemAllocator
);
ok
(
hr
==
S_OK
,
"Decommit returned: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Decommit returned: %x
\n
"
,
hr
);
hr
=
IMemAllocator_Decommit
(
pMemAllocator
);
ok
(
hr
==
S_OK
,
"Cecommit returned: %
l
x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Cecommit returned: %x
\n
"
,
hr
);
IMemAllocator_Release
(
pMemAllocator
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment