Alistair Leslie-Hughes
77e0aae7f3
krnl386.exe16: Don't overflow when calculating size.
...
The application again the bug, passed 1 as the elem parameter which
doubled the memory being allocated. When it overflowed (became negative),
the value was passed into GlobalAlloc16 which then failed.
GlobalAlloc16 takes a DWORD parameter, so the value isn't going to be truncated.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53092
Original patch by github user cracyc for winevdm.
2023-06-01 22:00:19 +02:00
Eric Pouech
83bc5d4be7
krnl386.exe16: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-11 11:21:29 +01:00
Alexandre Julliard
f87262ea99
include: Add CURRENT_SS/SP macros for 16-bit code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Alexandre Julliard
024f9ebd1a
krnl386: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-02 10:55:25 +02:00
Alexandre Julliard
b544836952
krnl386: Avoid using the LDT definitions from libwine.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-01 23:00:45 +02:00
Alexandre Julliard
075e561f5c
winebuild: Don't change %fs and %gs when calling 16-bit register functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:00:59 +02:00
Marcus Meissner
428e0312b7
krnl386.exe16: Fixed if that always succeeds (Coverity).
2011-05-11 17:49:58 +02:00
Alexandre Julliard
1b2604384b
krnl386.exe: Avoid using the CONTEXT86 type.
2010-10-20 18:37:09 +02:00
Alexandre Julliard
475b7d226c
kernel32: Make krnl386.exe into a stand-alone 16-bit module.
2009-12-30 17:36:14 +01:00