Skip to content

Commit

Permalink
MirrorSetFileSecurity fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
landrix committed Apr 4, 2023
1 parent 4570344 commit fd4f3dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dokan.pas
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
Dokan API wrapper for Delphi based on Release 2.0.5.1000
https://github.com/dokan-dev/dokany/releases/tag/v2.0.5.1000
Copyright (C) 2019 - 2022 Sven Harazim
Copyright (C) 2019 - 2023 Sven Harazim
Dokan : user-mode file system library for Windows
Expand Down Expand Up @@ -332,7 +332,7 @@ _DOKAN_IO_SECURITY_CONTEXT = record

TDokanSetFileSecurity = function (
FileName: LPCWSTR;
var SecurityInformation: PSECURITY_INFORMATION;
SecurityInformation: PSECURITY_INFORMATION;
SecurityDescriptor: PSECURITY_DESCRIPTOR;
BufferLength: ULONG;
DokanFileInfo: PDOKAN_FILE_INFO
Expand Down
2 changes: 1 addition & 1 deletion DokanWin.pas
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
Dokan API wrapper for Delphi based on Release 2.0.5.1000
https://github.com/dokan-dev/dokany/releases/tag/v2.0.5.1000
Copyright (C) 2019 - 2022 Sven Harazim
Copyright (C) 2019 - 2023 Sven Harazim
Dokan : user-mode file system library for Windows
Expand Down
6 changes: 3 additions & 3 deletions Samples/Mirror/Mirror.dpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
Dokan API wrapper for Delphi based on Release 2.0.5.1000
https://github.com/dokan-dev/dokany/releases/tag/v2.0.5.1000
Copyright (C) 2019 - 2022 Sven Harazim
Copyright (C) 2019 - 2023 Sven Harazim
Dokan : user-mode file system library for Windows
Expand Down Expand Up @@ -1453,7 +1453,7 @@ begin
end;

function MirrorSetFileSecurity(
FileName: LPCWSTR; var SecurityInformation: PSECURITY_INFORMATION;
FileName: LPCWSTR; SecurityInformation: PSECURITY_INFORMATION;
SecurityDescriptor: PSECURITY_DESCRIPTOR; SecurityDescriptorLength: ULONG;
DokanFileInfo: PDOKAN_FILE_INFO): NTSTATUS; stdcall;
var
Expand All @@ -1476,6 +1476,7 @@ begin
DbgPrint(' SetUserObjectSecurity error: %d\n', [error]);
Result := DokanNtStatusFromWin32(error); Exit;
end;

Result := STATUS_SUCCESS; Exit;
end;

Expand Down Expand Up @@ -1917,7 +1918,6 @@ begin
Writeln(ErrOutput, 'Unknown error: ', status);
end;

Readln;
Result := EXIT_SUCCESS; Exit;
end;

Expand Down

0 comments on commit fd4f3dc

Please sign in to comment.