mirror of
https://github.com/restic/restic.git
synced 2025-03-30 00:00:14 +01:00
Revert a fix that broke compile of sd_windows.go.
This commit is contained in:
parent
f238f81ba6
commit
d2c5241961
1 changed files with 1 additions and 1 deletions
|
@ -211,6 +211,6 @@ func securityDescriptorBytesToStruct(sd []byte) (*windows.SECURITY_DESCRIPTOR, e
|
||||||
// securityDescriptorStructToBytes converts the pointer to windows SECURITY_DESCRIPTOR
|
// securityDescriptorStructToBytes converts the pointer to windows SECURITY_DESCRIPTOR
|
||||||
// into a security descriptor bytes representation.
|
// into a security descriptor bytes representation.
|
||||||
func securityDescriptorStructToBytes(sd *windows.SECURITY_DESCRIPTOR) ([]byte, error) {
|
func securityDescriptorStructToBytes(sd *windows.SECURITY_DESCRIPTOR) ([]byte, error) {
|
||||||
b := unsafe.Slice(unsafe.Pointer(sd), sd.Length())
|
b := unsafe.Slice((*byte)(unsafe.Pointer(sd)), sd.Length())
|
||||||
return b, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue