Commit d155df5c authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winmm/tests: Change the current directory to a place that will be writable.

parent 2e0d15b0
...@@ -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);
} }
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