Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions win32/dll/user32/src/printf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ pub fn printf(
let str = mem.slicez(addr);
write!(out, "{}", std::str::from_utf8(str)?)?;
}
b'x' => write!(
out,
"{:width$.precision$x}",
args.pop::<u32>(mem),
width = width,
precision = precision
)?,
_ => todo!("format string character {:?}", c as char),
}
} else {
Expand Down
Loading