Module: wine Branch: master Commit: c81c11f72d17c0263c288891c39cfb39b2c017cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=c81c11f72d17c0263c288891c3... Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Wed Jun 11 08:32:35 2008 +0200 shlwapi/tests: Don't create testfile at a fixed location. --- dlls/shlwapi/tests/istream.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/tests/istream.c b/dlls/shlwapi/tests/istream.c index d8aced5..05a0e5a 100644 --- a/dlls/shlwapi/tests/istream.c +++ b/dlls/shlwapi/tests/istream.c @@ -384,10 +384,15 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm) IStream * template = NULL; HRESULT ret; ULONG refcount; - static const WCHAR test_file[] = { 'c', ':', '\\', 't', 'e', 's', 't', '.', 't', 'x', 't', '\0' }; + WCHAR test_file[MAX_PATH]; + static const WCHAR testEx_txt[] = { '\\', 't', 'e', 's', 't', 'E','x', '.', 't', 'x', 't', '\0' }; trace("SHCreateStreamOnFileEx: testing mode %d, STGM flags %08x\n", mode, stgm); + /* Don't used a fixed path for the testEx.txt file */ + GetTempPathW(MAX_PATH, test_file); + lstrcatW(test_file, testEx_txt); + /* invalid arguments */ stream = NULL;