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
d155df5c
Commit
d155df5c
authored
Feb 24, 2014
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Change the current directory to a place that will be writable.
parent
2e0d15b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
mci.c
dlls/winmm/tests/mci.c
+8
-0
No files found.
dlls/winmm/tests/mci.c
View file @
d155df5c
...
@@ -1297,8 +1297,14 @@ static void test_AutoOpenWAVE(HWND hwnd)
...
@@ -1297,8 +1297,14 @@ static void test_AutoOpenWAVE(HWND hwnd)
START_TEST
(
mci
)
START_TEST
(
mci
)
{
{
char
curdir
[
MAX_PATH
],
tmpdir
[
MAX_PATH
];
MCIERROR
err
;
MCIERROR
err
;
HWND
hwnd
;
HWND
hwnd
;
GetCurrentDirectoryA
(
MAX_PATH
,
curdir
);
GetTempPathA
(
MAX_PATH
,
tmpdir
);
SetCurrentDirectoryA
(
tmpdir
);
hwnd
=
CreateWindowExA
(
0
,
"static"
,
"winmm test"
,
WS_POPUP
,
0
,
0
,
100
,
100
,
hwnd
=
CreateWindowExA
(
0
,
"static"
,
"winmm test"
,
WS_POPUP
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
0
,
0
,
0
,
NULL
);
test_mciParser
(
hwnd
);
test_mciParser
(
hwnd
);
...
@@ -1315,4 +1321,6 @@ START_TEST(mci)
...
@@ -1315,4 +1321,6 @@ START_TEST(mci)
ok
(
!
err
,
"final close all returned %s
\n
"
,
dbg_mcierr
(
err
));
ok
(
!
err
,
"final close all returned %s
\n
"
,
dbg_mcierr
(
err
));
ok
(
DeleteFileA
(
"tempfile.wav"
)
||
ok_saved
,
"Delete tempfile.wav (cause auto-open?)
\n
"
);
ok
(
DeleteFileA
(
"tempfile.wav"
)
||
ok_saved
,
"Delete tempfile.wav (cause auto-open?)
\n
"
);
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
SetCurrentDirectoryA
(
curdir
);
}
}
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