Skip to content

Commit 5cf0553

Browse files
committed
Fix wrong types causing errors
1 parent bd93b8d commit 5cf0553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

objdiff-core/src/arch/x86.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ impl Arch for ArchX86 {
314314

315315
unsafe {
316316
let len = UnDecorateSymbolName(
317-
cstr.as_ptr() as *const u8,
318-
buffer.as_mut_ptr(),
317+
cstr.as_ptr() as windows_sys::core::PCSTR,
318+
buffer.as_mut_ptr() as windows_sys::core::PSTR,
319319
buffer.len() as u32,
320320
0, // UNDNAME_COMPLETE
321321
);

0 commit comments

Comments
 (0)