Skip to content

Commit

Permalink
fix last merge
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Oct 26, 2024
1 parent d453e07 commit 2954fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/windows/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ fn make_proc_thread_attribute_list(
// Therefore, we ensure that we don't add more attributes than the buffer was initialized for.
for (&attribute, value) in attributes.iter().take(attribute_count as usize) {
match value {
let value_ptr = (&raw const *value.data) as _;
ProcThreadAttributeValue::Data(value) => {
let value_ptr = core::ptr::addr_of!(*value.data) as _;
cvt(unsafe {
c::UpdateProcThreadAttribute(
Expand Down

0 comments on commit 2954fc2

Please sign in to comment.