Alexandre Julliard pushed to branch master at wine / wine
Commits: 1fc91559 by Jiajin Cui at 2025-11-14T11:17:06+01:00 wow64win: Change parameter types from LONG to ULONG in wow64_NtUserMessageCall.
Change wparam and lparam parameter types from LONG to ULONG in wow64_NtUserMessageCall function to match the expected data types from the get_ulong function. The get_ulong function returns unsigned 32- bit values, so using ULONG type ensures proper type compatibility and prevents potential sign extension issues when handling message parameters in 64-bit Windows emulation.
When a 32-bit program sets the IMAGE_FILE_LARGE_ADDRESS_AWARE flag, lparam may be an address exceeding 2GB, such as 0x8defddef. If using ULONG to receive it, due to sign extension, the address becomes 0xffffffff8defddef, causing exceptions during subsequent address access.
Signed-off-by: Jiajin Cui cuijiajin@uniontech.com
- - - - -
1 changed file:
- dlls/wow64win/user.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/1fc91559227d4f07eedf3d965c81e09...