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