From d2c5241961425fd601d8ed5efa0da5aa789ebfa9 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Sat, 22 Mar 2025 18:27:09 +0000 Subject: [PATCH] Revert a fix that broke compile of sd_windows.go. --- internal/fs/sd_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/fs/sd_windows.go b/internal/fs/sd_windows.go index 9e9971833..04623e8d3 100644 --- a/internal/fs/sd_windows.go +++ b/internal/fs/sd_windows.go @@ -211,6 +211,6 @@ func securityDescriptorBytesToStruct(sd []byte) (*windows.SECURITY_DESCRIPTOR, e // securityDescriptorStructToBytes converts the pointer to windows SECURITY_DESCRIPTOR // into a security descriptor bytes representation. 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 }