mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
ntdll/tests: Fix one more place regarding temp path usage.
This commit is contained in:
parent
8eb9ffb3fa
commit
b126d7c7ce
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user