mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Remove LPSECURITY_ATTRIBUTES
This commit is contained in:
parent
1b7cf3a3f2
commit
351f1f36f6
@ -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")]
|
||||
|
@ -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)]
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user