Dmitry Timoshkov : ntdll/tests: Fix one more place regarding temp path usage.
Alexandre Julliard
julliard at winehq.org
Fri Aug 23 13:49:35 CDT 2013
Module: wine
Branch: master
Commit: b126d7c7ce1626e8440b7fef83947fa2de5444c6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b126d7c7ce1626e8440b7fef83947fa2de5444c6
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Fri Aug 23 13:59:55 2013 +0900
ntdll/tests: Fix one more place regarding temp path usage.
---
dlls/ntdll/tests/file.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 240c627..99e769e 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -101,10 +101,11 @@ static BOOL create_pipe( HANDLE *read, HANDLE *write, ULONG flags, ULONG size )
static HANDLE create_temp_file( ULONG flags )
{
- char buffer[MAX_PATH];
+ char path[MAX_PATH], buffer[MAX_PATH];
HANDLE handle;
- GetTempFileNameA( ".", "foo", 0, buffer );
+ GetTempPathA( MAX_PATH, path );
+ GetTempFileNameA( path, "foo", 0, buffer );
handle = CreateFileA(buffer, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
flags | FILE_FLAG_DELETE_ON_CLOSE, 0);
ok( handle != INVALID_HANDLE_VALUE, "failed to create temp file\n" );
More information about the wine-cvs
mailing list