winfsp-tests: create_test

This commit is contained in:
Bill Zissimopoulos 2016-01-19 19:21:27 -08:00
parent 472759ae83
commit a720b2c41b
2 changed files with 7 additions and 1 deletions

View File

@ -752,7 +752,7 @@ static VOID FspFsvolCreateOverwriteRequestFini(PVOID Context[3])
FspFileDescDelete(FileDesc);
}
Context[RequestFileDesc] = Context[RequestFileObject] = 0;
Context[RequestFileDesc] = Context[RequestFileObject] = Context[RequestStatus] = 0;
}
NTSTATUS FspCreate(

View File

@ -35,6 +35,12 @@ void create_dotest(ULONG Flags, PWSTR Prefix)
ASSERT(INVALID_HANDLE_VALUE != Handle);
CloseHandle(Handle);
Handle = CreateFileW(FilePath,
GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, CREATE_ALWAYS,
FILE_ATTRIBUTE_HIDDEN | FILE_FLAG_DELETE_ON_CLOSE, 0);
ASSERT(INVALID_HANDLE_VALUE != Handle);
CloseHandle(Handle);
memfs_stop(memfs);
}