Thread: JumpCalculator
View Single Post
  #2  
Old 08-30-2025, 14:36
Jupiter's Avatar
Jupiter Jupiter is offline
Lo*eXeTools*rd
 
Join Date: Jan 2005
Location: Moscow, Russia
Posts: 234
Rept. Given: 43
Rept. Rcvd 62 Times in 37 Posts
Thanks Given: 38
Thanks Rcvd at 191 Times in 57 Posts
Jupiter Reputation: 62
Exclamation Short jump display bug

There is a bug in display routine.
App shows `EB2` instead of `EB02`.

File: JumpCalculatorDlg.cpp
Line: 444

Current code:
Code:
```c
char buffer[50];
if (ShortJump)
	sprintf(buffer, "%s%X", opcode, computed & 0x0FF);
else
	sprintf(buffer, "%s%04X", opcode, Endian_DWord_Conversion(computed));

SetDlgItemText(IDC_EDIT2, buffer);
```
Mask for `sprintf` should be "%s%02X" instead of "%s%X".
__________________
EnJoy!
Reply With Quote
The Following 2 Users Say Thank You to Jupiter For This Useful Post:
MarcElBichon (08-30-2025), riverstore (11-04-2025)