Nikolay Sivov
f8cca445fb
ntdll: Allow closing tags for 'supportedOS' elements.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:14:20 +01:00
Jacek Caban
c0d08e13c8
ntdll/tests: Added pipe security descriptor tests.
...
Based on patch by Jonathan Doron.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 18:39:19 +01:00
Alexandre Julliard
12276796c9
ntdll: Hardcode the windows and system directories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 19:38:29 +01:00
Michael Müller
37c983966b
ntdll: Implement RunlevelInformationInActivationContext in RtlQueryInformationActivationContext.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:55:08 +01:00
Michael Müller
5875dcd6f9
ntdll: Parse execution level information in manifest data.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:55:08 +01:00
Alexandre Julliard
5d088206d2
ntdll: Use the image information data when mapping an image file.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 12:23:23 +01:00
Alexandre Julliard
1e036633e8
include: Add definitions for SECTION_IMAGE_INFORMATION flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 20:23:26 +01:00
Mark Jansen
0f1cb96b69
ntdll: Parse manifest compatibility section.
...
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 17:20:36 +01:00
Alistair Leslie-Hughes
4bbbc261d1
ntdll: Support TokenLogonSid in NtQueryInformationToken.
...
Based on a patch by Andrew Wesie.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 19:38:29 +01:00
Alexandre Julliard
7ccae68f6c
ntdll: Fix crash on nested thread exit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 19:38:30 +01:00
Alexandre Julliard
b1f8a91e6c
ntdll: Use MAP_SHARED also for read-only mappings.
...
This essentially reverts commit dac252ecb4
.
It's necessary for macOS.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 14:28:10 +01:00
Alexandre Julliard
73d1b89a12
ntdll: Get rid of the vm86 structure in the TEB.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 17:16:44 +01:00
Alexandre Julliard
4a5890811d
ntdll: Block signals during process-wide exit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 16:43:34 +01:00
Alexandre Julliard
e7202687fc
ntdll: Remove support for vm86 mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:57 +01:00
Alexandre Julliard
a8a74134e8
ntdll: Check for file mappings that cannot be loaded as dlls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 15:10:24 +01:00
Alexandre Julliard
60e6331520
ntdll: Move file mapping functionality to a helper function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 15:10:23 +01:00
Alexandre Julliard
41275cbabf
ntdll: Don't return 64-bit image info to 32-bit processes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:59:12 +01:00
Martin Storsjo
4415653f84
ntdll: Implement NtFlushInstructionCache using __clear_cache where available.
...
The configure check needs to be done with a more elaborate test than
just AC_CHECK_FUNC, since it's a built-in function in clang and errors
out if invoked with no parameters.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:46 +01:00
Alexandre Julliard
9d911a5736
ntdll: Move suspending a thread on startup back to the platform-specific files.
...
This partially reverts f64d2688d2
.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:46 +01:00
Alexandre Julliard
a83532d8dd
ntdll: Store the context on the thread stack after the initial suspend.
...
The initial stack pointer may have been modified during suspend.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:45 +01:00
Alexandre Julliard
3e80093410
ntdll: Implement RtlPushFrame, RtlPopFrame and RtlGetFrame.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 16:26:13 +01:00
Alexandre Julliard
03d31ea81d
server: Only update the modified parts of the context on thread suspend.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 15:18:48 +01:00
André Hentschel
dfe813e34f
ntdll: Determine write fault based on failed instruction on ARM64.
...
Based on code from Qemu. Reported by Stefan Dösinger.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 10:20:07 +01:00
Alexandre Julliard
8a62752fe9
ntdll: Use DWORDs for ARM assembly instructions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 19:20:10 +01:00
Alexandre Julliard
7bcb214158
ntdll: Export strnlen.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 19:19:28 +01:00
Thomas Faber
42f742e1be
ntdll: Handle RtlReAllocateHeap failure in com_class_add_progid (Coverity).
...
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-18 18:45:12 +01:00
Alexandre Julliard
3e26caf0d8
ntdll: Avoid the strd ARM instruction.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-17 09:35:12 +01:00
Alexandre Julliard
62a1410a07
ntdll: Fix source/destination confusion in vsscanf.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-05 16:09:30 +01:00
Andrey Gusev
c4dd0ff5ec
ntdll/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 11:56:41 +01:00
Alexandre Julliard
5020fb7c47
ntdll: Don't set floating point registers from initial context.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 15:52:21 +01:00
Alexandre Julliard
d108ff79d5
ntdll: NtQuerySection takes SIZE_T parameters.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 13:06:43 +01:00
Alexandre Julliard
6fe15e6c41
ntdll: Round the pthread stack size to a page boundary.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-26 10:14:38 +01:00
Jacek Caban
d4d6330f0a
server: Add support for querying FileNameInformation on named pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 12:19:43 +01:00
Jacek Caban
6b08e60f03
server: Introduce get_file_info request for server-side NtQueryInformationFile implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 12:19:43 +01:00
Jacek Caban
514a157541
ntdll/tests: Add NtQueryInformationFile(FileNameInformation) on named pipes tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 11:52:51 +01:00
Alexandre Julliard
c2f34d1b24
ntdll: Reset the exit frame when switching back to it.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-15 12:36:16 +01:00
Alexandre Julliard
6eab1e93f3
ntdll: Define PTHREAD_STACK_MIN if it's missing.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 20:28:48 +01:00
Alexandre Julliard
d147c4c323
ntdll: Switch back to the initial stack for thread exit on ARM.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 20:28:48 +01:00
Alexandre Julliard
f492efdb3c
ntdll: Reimplement thread initialization in assembler on ARM.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 18:34:46 +01:00
Alexandre Julliard
8a07ee48fa
ntdll: Set all registers in set_cpu_context() on ARM.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 18:34:19 +01:00
Alexandre Julliard
5e3534ee41
ntdll: Fix handling of floating point arguments in relay debugging on ARM.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 13:50:55 +01:00
Alexandre Julliard
7e9f1878db
ntdll: Run the thread/process detach code on the thread stack.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 10:54:56 +01:00
Akihiro Sagawa
081eae7ac3
ntdll/tests: Add tests for time zone names.
...
Test shows internal NT API returns an indirect string, e.g.
@tzres.dll,-32, not a localized one in Vista or later.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-12 18:30:14 +01:00
Alexandre Julliard
dac252ecb4
ntdll: Only require MAP_SHARED for writable mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-12 15:15:02 +01:00
Akihiro Sagawa
35d93e02d1
ntdll: Return correct time zone names for Asia/Tokyo and Asia/Yakutsk.
...
Without this change, for Japan, Wine returns "Korea Standard Time",
not "Tokyo Standard Time" as seen in Bug 42719.
Actually, this is a regression by d666143f88
.
The new code relies on offsets from UTC and DST change timings. However,
Northeast Asia regions don't use daylight saving time. Thus, Wine can't
distinguish between these regions.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:15:19 +01:00
Andrew Eikum
f87a2f0e4c
ntdll: Don't require full-page reads in NtReadFileScatter.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:52 +01:00
Andrew Eikum
64edbfa6fe
ntdll: Don't return an error when reading past EOF in NtReadFileScatter.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:41 +01:00
Andrew Eikum
5262761135
ntdll: Report NtReadFileScatter results asynchronously.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:37 +01:00
Alexandre Julliard
8c1bb2aa61
ntdll: Display floating point arguments in relay debugging on i386 and x86-64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 11:14:02 +01:00
Alexandre Julliard
d12717b9a8
server: Add floating point and debug registers to the ARM64 context.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-05 20:30:04 +01:00