Skip to content

Commit 68ac381

Browse files
committed
Remove LPSECURITY_ATTRIBUTES
1 parent 6d037b8 commit 68ac381

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

std/src/sys/pal/windows/c.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub type DWORD = c_ulong;
2121
pub type WCHAR = u16;
2222
pub type ULONG = c_ulong;
2323

24-
pub type LPSECURITY_ATTRIBUTES = *mut SECURITY_ATTRIBUTES;
2524
pub type LPVOID = *mut c_void;
2625

2726
#[cfg(target_vendor = "win7")]

std/src/sys/pal/windows/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub struct OpenOptions {
7979
attributes: c::DWORD,
8080
share_mode: c::DWORD,
8181
security_qos_flags: c::DWORD,
82-
security_attributes: c::LPSECURITY_ATTRIBUTES,
82+
security_attributes: *mut c::SECURITY_ATTRIBUTES,
8383
}
8484

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

0 commit comments

Comments
 (0)