Skip to content

Commit

Permalink
Remove LPSECURITY_ATTRIBUTES
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jul 15, 2024
1 parent 6d037b8 commit 68ac381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion std/src/sys/pal/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub type DWORD = c_ulong;
pub type WCHAR = u16;
pub type ULONG = c_ulong;

pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES;
pub type LPVOID = *mut c_void;

#[cfg(target_vendor = "win7")]
Expand Down
4 changes: 2 additions & 2 deletions std/src/sys/pal/windows/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub struct OpenOptions {
attributes: c::DWORD,
share_mode: c::DWORD,
security_qos_flags: c::DWORD,
security_attributes: c::LPSECURITY_ATTRIBUTES,
security_attributes: *mut c::SECURITY_ATTRIBUTES,
}

#[derive(Clone, PartialEq, Eq, Debug)]
Expand Down Expand Up @@ -241,7 +241,7 @@ impl OpenOptions {
// receive is `SECURITY_ANONYMOUS = 0x0`, which we can't check for later on.
self.security_qos_flags = flags | c::SECURITY_SQOS_PRESENT;
}
pub fn security_attributes(&mut self, attrs: c::LPSECURITY_ATTRIBUTES) {
pub fn security_attributes(&mut self, attrs: *mut c::SECURITY_ATTRIBUTES) {
self.security_attributes = attrs;
}

Expand Down

0 comments on commit 68ac381

Please sign in to comment.