mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 04:22:50 -05:00
winfsp-tests: memfs: SetSecurity: bug fix
This commit is contained in:
@@ -595,7 +595,7 @@ static NTSTATUS SetSecurity(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor);
|
FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor);
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
memcpy(FileSecurity, SecurityDescriptor, FileSecuritySize);
|
memcpy(FileSecurity, NewSecurityDescriptor, FileSecuritySize);
|
||||||
FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor);
|
FspDeleteSecurityDescriptor(NewSecurityDescriptor, (NTSTATUS (*)())FspSetSecurityDescriptor);
|
||||||
|
|
||||||
free(FileNode->FileSecurity);
|
free(FileNode->FileSecurity);
|
||||||
|
Reference in New Issue
Block a user