1
0
Fork 0
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:
Martin Smith 2025-03-22 18:27:09 +00:00
parent f238f81ba6
commit d2c5241961

View file

@ -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
} }