Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5b622cfd
Commit
5b622cfd
authored
Sep 08, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Sep 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Call CoInitialize() to enable tests to run on Win 10.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d3e5f84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Makefile.in
dlls/winmm/tests/Makefile.in
+1
-1
midi.c
dlls/winmm/tests/midi.c
+6
-0
No files found.
dlls/winmm/tests/Makefile.in
View file @
5b622cfd
TESTDLL
=
winmm.dll
TESTDLL
=
winmm.dll
IMPORTS
=
winmm user32 advapi32
IMPORTS
=
winmm
ole32
user32 advapi32
C_SRCS
=
\
C_SRCS
=
\
capture.c
\
capture.c
\
...
...
dlls/winmm/tests/midi.c
View file @
5b622cfd
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <stddef.h>
#include <stddef.h>
#include "windows.h"
#include "windows.h"
#include "mmsystem.h"
#include "mmsystem.h"
#include "objbase.h"
#include "wine/test.h"
#include "wine/test.h"
extern
const
char
*
mmsys_error
(
MMRESULT
error
);
/* from wave.c */
extern
const
char
*
mmsys_error
(
MMRESULT
error
);
/* from wave.c */
...
@@ -835,10 +836,15 @@ static void test_midi_outfns(HWND hwnd)
...
@@ -835,10 +836,15 @@ static void test_midi_outfns(HWND hwnd)
START_TEST
(
midi
)
START_TEST
(
midi
)
{
{
HWND
hwnd
=
0
;
HWND
hwnd
=
0
;
CoInitialize
(
NULL
);
/* Needed for Win 10 */
if
(
1
)
/* select 1 for CALLBACK_WINDOW or 0 for CALLBACK_FUNCTION */
if
(
1
)
/* select 1 for CALLBACK_WINDOW or 0 for CALLBACK_FUNCTION */
hwnd
=
CreateWindowExA
(
0
,
"static"
,
"winmm midi test"
,
WS_POPUP
,
0
,
0
,
100
,
100
,
hwnd
=
CreateWindowExA
(
0
,
"static"
,
"winmm midi test"
,
WS_POPUP
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
0
,
0
,
0
,
NULL
);
test_midi_infns
(
hwnd
);
test_midi_infns
(
hwnd
);
test_midi_outfns
(
hwnd
);
test_midi_outfns
(
hwnd
);
if
(
hwnd
)
DestroyWindow
(
hwnd
);
if
(
hwnd
)
DestroyWindow
(
hwnd
);
CoUninitialize
();
}
}
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