We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d453e07 commit 2954fc2Copy full SHA for 2954fc2
library/std/src/sys/pal/windows/process.rs
@@ -991,7 +991,7 @@ fn make_proc_thread_attribute_list(
991
// Therefore, we ensure that we don't add more attributes than the buffer was initialized for.
992
for (&attribute, value) in attributes.iter().take(attribute_count as usize) {
993
match value {
994
- let value_ptr = (&raw const *value.data) as _;
+ ProcThreadAttributeValue::Data(value) => {
995
let value_ptr = core::ptr::addr_of!(*value.data) as _;
996
cvt(unsafe {
997
c::UpdateProcThreadAttribute(
0 commit comments