From b58236bf95f50a3a83cd47c971ac81eefa1b93bb Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sat, 20 Feb 2016 22:59:58 -0800 Subject: [PATCH] winfsp-tests: memfs: SetSecurity: bug fix --- tst/winfsp-tests/memfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/winfsp-tests/memfs.cpp b/tst/winfsp-tests/memfs.cpp index 1c185264..48b7156e 100644 --- a/tst/winfsp-tests/memfs.cpp +++ b/tst/winfsp-tests/memfs.cpp @@ -595,7 +595,7 @@ static NTSTATUS SetSecurity(FSP_FILE_SYSTEM *FileSystem, FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor); return STATUS_INSUFFICIENT_RESOURCES; } - memcpy(FileSecurity, SecurityDescriptor, FileSecuritySize); + memcpy(FileSecurity, NewSecurityDescriptor, FileSecuritySize); FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor); free(FileNode->FileSecurity);