Skip to content

Commit a811c06

Browse files
committed
log index?
1 parent ab80590 commit a811c06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libmwemu/src/emu/winapi64/kernel32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,9 @@ fn TlsAlloc(emu: &mut emu::Emu) {
28452845
);
28462846

28472847
emu.tls64.push(0);
2848-
emu.regs.rax = emu.tls64.len() as u64;
2848+
let tls_index = emu.tls64.len() as u64;
2849+
log::info!("kernel32!TlsAlloc tls_index: {}", tls_index);
2850+
emu.regs.rax = tls_index;
28492851
}
28502852

28512853
fn TlsFree(emu: &mut emu::Emu) {

0 commit comments

Comments
 (0)