Damjan Jovanovic
fc4726c225
krnl386.exe: Fix VxD filename format checks in __wine_vxd_open().
...
__wine_vxd_open() has several bugs. If filenameW doesn't end in
".vxd", it is wrongly
allowed to be over 8 characters long. If it does end in ".vxd", then a
maximum length
filename, eg. "12345678.vxd", always gets misdetected as being too long, as:
"lstrlenW( filenameW ) >= ARRAY_SIZE(name) - 4"
becomes 12 >= 12.
Rather do the checks for maximum filename length when we detect the
filename format.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-23 10:34:51 +01: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
4a17ca008e
krnl386.exe: Don't use wine/server.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 23:01:37 +01:00
Alexandre Julliard
584427fc89
server: Avoid redefining the DuplicateHandle() constants.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 21:20:47 +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
61ad36fdc9
krnl386: Return a handle to the vxd file itself instead of creating a dummy file.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-26 18:34:49 +01:00
Lass Safin
e61d7bbfbc
krnl386.exe: Add comment explaining what ZeroBits argument of NtMapViewOfSection is for.
...
Signed-off-by: Lass Safin <las@protonmail.ch>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-19 19:33:52 +01:00
Michael Stefaniuc
b45f948826
krnl386.exe16: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:38:59 +02:00
Michael Stefaniuc
38ba364cc4
krnl386.exe16: Avoid ARRAY_SIZE-like macros.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Alexandre Julliard
1b85b6cab7
krnl386: Use RtlCaptureContext and NtSetContextThread to implement register functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 12:04:46 +02:00
Alexandre Julliard
c5a35d898f
krnl386: Explicitly fetch the service argument in VxDCall.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 11:51:18 +02:00
Alexandre Julliard
5b71091b43
krnl386: Mark function that are only called from assembly as hidden.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 11:50:51 +02:00
Jacek Caban
413ad29ef9
krnl386.exe: Pass SYNCHRONIZE flag to NtCreateFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 21:02:01 +09:00
Francois Gouget
bc68822c09
krnl386.exe16: Remove unneeded NONAMELESSXXX directives.
2015-03-13 00:28:20 +09:00
Alexandre Julliard
1b2604384b
krnl386.exe: Avoid using the CONTEXT86 type.
2010-10-20 18:37:09 +02:00
Alexandre Julliard
26a42f8452
winedos: Merge all of winedos back into krnl386.
2010-01-05 16:25:34 +01:00
Alexandre Julliard
e7715126eb
winedos: Move 16-bit VxD support back into kernel.
2009-12-30 17:40:19 +01:00
Alexandre Julliard
475b7d226c
kernel32: Make krnl386.exe into a stand-alone 16-bit module.
2009-12-30 17:36:14 +01:00