George Bișoc
18ddb6ba92
[NTOS:SE] Implement SeTokenCanImpersonate routine
...
SeTokenCanImpersonate ensures whether the client impersonation can occur, and if not, the call signals this to the caller.
2021-05-02 16:55:19 +02:00
Eric Kohl
a7d6483e65
[NTOS:PS] Revert 4d7062abb6
on request
2021-05-02 16:26:11 +02:00
Eric Kohl
9fa31e0f9b
[NTOS:PS] Add the missing privilege check to NtSetInformationThread:ThreadPriority
...
This fixes the remaining failure in the NtSetInformationThread test.
2021-05-02 15:28:26 +02:00
Eric Kohl
4d7062abb6
[NTOS:PS] Add ThreadInformation probing to NtSetInformationThread
...
Also get rid of unused buffer check code.
This fixes two test failures.
2021-05-02 13:55:29 +02:00
Eric Kohl
2e88e2b904
[NTOS:PS] Rewrite NtSetInformationThread to match NtQueryInformationThread
...
The Information length must always be checked before referencing the thread object. This fixes a test failure.
2021-05-02 13:46:22 +02:00
Eric Kohl
5585767460
[NTOS:PS] Rewrite NtQueryInformationThread to match NtQueryInformationProcess
...
The information length must always be checked before referencing the thread object. This fixes the remaining test failure.
2021-05-02 12:46:55 +02:00
Serge Gautherie
249f2388bd
[REACTOS] Fix parameter types on some exports ( #3217 )
...
Fix some wrong parameter types on some exports in NTDLL, KERNEL32, WTSAPI32, and NTOSKRNL.
2021-05-01 21:11:34 +02:00
Serge Gautherie
5d89643311
[NTOS:OB] ObQueryDeviceMapInformation(): Fix annotations
2021-05-01 11:26:07 +02:00
Serge Gautherie
f1689cdcea
[PSDK] UnlockResource(): Improve definition
...
Sync' with
a9e50da352
2021-05-01 09:48:02 +02:00
Katayama Hirofumi MZ
92e3b426b3
[CMD_APITEST] Follow-up of #3632 ( 0c2230a
)
...
CORE-17500
2021-04-30 10:48:33 +09:00
Hermès Bélusca-Maïto
bb467003b7
[INF] Remove stray file. Addendum to commit a1fc312a
.
2021-04-30 02:42:35 +02:00
Serge Gautherie
8a61e4f08c
[NTOS:PS] NtQueryInformationProcess(): Fix ProcessDeviceMap case
...
Fix Clang-Cl
'...\ntoskrnl\ps\query.c(583,33): warning: variable 'Status' is uninitialized when used here [-Wuninitialized]'
Addendum to 1074a9a
.
2021-04-29 21:40:58 +02:00
Serge Gautherie
c0961cac10
[NTOS:PS] NtQueryInformationProcess(): Sync' annotations
2021-04-29 21:40:58 +02:00
Katayama Hirofumi MZ
91dc5eac7d
[FC] Fix typo s/IDS_RESYNCH_/IDS_RESYNC_/ s/Resynch/Resync/
...
CORE-17500
2021-04-29 16:59:20 +09:00
Katayama Hirofumi MZ
0c2230ad64
[CMD_APITEST] Add FC testcase ( #3632 )
...
Add a testcase for FC (file comparison) command to investigate FC command. CORE-17500
2021-04-29 16:39:13 +09:00
Hervé Poussineau
a1fc312a89
[NE2000] Use the real MAC address instead of a fake one
...
These lines were added 15 years ago, in r18445.
2021-04-28 17:28:38 +02:00
Jérôme Gardou
b97d5fd2f7
[NTOS:KDBG] Fix invalid DBG print
2021-04-28 15:58:01 +02:00
Jérôme Gardou
0ab44664b6
[KDGDB] Remove debugging leftover
2021-04-28 14:52:05 +02:00
Jérôme Gardou
3726b992ed
[NTOS:KDBG] Begin port for amd64.
...
Not really functional, but it prints debug output.
Take this as an opportunity to add consistancy between some i386 & amd64 intrinsics
2021-04-28 13:10:23 +02:00
Jérôme Gardou
439aefb31d
[CRT] Sync tlssup.c with mingw-w64
...
This allows amd64 built binary to be loaded.
2021-04-28 13:10:23 +02:00
Jérôme Gardou
fe3278d4d6
[CRT] We never use the mthread library
2021-04-28 13:10:23 +02:00
Jérôme Gardou
3ee1eb42a5
[KDGDB] Avoid looping for ever when something unexpected happens
2021-04-28 13:10:23 +02:00
Jérôme Gardou
2413530acf
[SDK] Use GAS SEH capabilities instead of CFI
...
Also remove a hack for x86 GAS which no longer holds
2021-04-28 13:10:23 +02:00
Jérôme Gardou
5e29e98f91
[NTOS:KE] Explicitly use sysretq instruction
2021-04-28 13:10:23 +02:00
Jérôme Gardou
63944988a2
[CMAKE] Disable SSE instruction on GCC amd64 builds
...
Except for user-mode modules
2021-04-28 13:10:23 +02:00
Jérôme Gardou
ba74a05a17
[PSEH] Add implementation for GCC amd64
...
Also, put include directory next to the library and use
target_include_directories(.. INTERFACE ..) to get this right.
This is because :
- Having includes & implementation in two different places buggers me
- This makes sure that there is no "if it compiles everything is fine" behaviour from anyone
because now even static libraries need it for GCC amd64 build
Also add __USE_PSEH2__ define for the non SEH-aware compilers out there and use it in a few headers
where we define macros involving __try
2021-04-28 13:10:23 +02:00
Jérôme Gardou
d31856cda1
[CRT] Do not include unneeded PSEH header
2021-04-28 13:10:23 +02:00
Jérôme Gardou
e470b58376
[REACTOS] Explicitly link against pseh & include pseh headers in a few places
2021-04-28 13:10:23 +02:00
Jérôme Gardou
37bc01f42b
[CMAKE] Introduce a GCC plugin for helping with amd64 SEH implementation
...
\#pragma REACTOS SEH(except)
\#pragma REACTOS SEH(finally)
What it does is counting the number of SEH __try blocks and emit the proper assembly statements at function prologue
It also checks for mixing C++ & SEH exception handling, which wouldn't work
2021-04-28 13:10:23 +02:00
Jérôme Gardou
8abcd18742
[RTL] Use addressing relative to rip
2021-04-28 13:10:23 +02:00
Jérôme Gardou
96a2b18903
[PSEH] Make the dummy PSEH at least usable.
...
Not screwing the code flow when no exception happens would be the least
2021-04-28 13:10:23 +02:00
Jérôme Gardou
617c7cc377
[HALX86] Use addressing relative to RIP
2021-04-28 13:10:23 +02:00
Jérôme Gardou
6f000979eb
[BTRFS] Use addressing relative to RIP
2021-04-28 13:10:23 +02:00
Jérôme Gardou
0eea78648c
[KDGDB] Adapt to amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
97858f3c87
[REGEDIT] Fix declaration of DbgPrint
2021-04-28 13:10:23 +02:00
Jérôme Gardou
955b5c27b1
[CRT] Fix __ll_lshift, __ll_rshift and __ull_rshift intrinsics on gcc-amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
97a8953538
[CMAKE:GCC] Enforce file alignment on driver & kernel images
2021-04-28 13:10:23 +02:00
Jérôme Gardou
382426f02e
[NDK] Add some missing defines for EFLAGS on amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
662774bca3
[NTOS] Do not force-align an integer value
2021-04-28 13:10:23 +02:00
Jérôme Gardou
d55276aad9
[FREELDR] Save used register when calling PNPBIOS
2021-04-28 13:10:23 +02:00
Jérôme Gardou
2bf116359b
[FREELDR] Force alignment of .text section on disk
...
Fixes boot for clang & GCC-amd64 build
Also rename freeldr_i386.lds to freeldr_gcc.lds for better clarity
2021-04-28 13:10:23 +02:00
Jérôme Gardou
7513cc9fca
[PSDK] Do not compare to max value if we can make sure that the value fits in target type
...
This fixes clang warning -Wtautological-constant-out-of-range-compare
2021-04-28 13:10:23 +02:00
Jérôme Gardou
a4138329a1
[CRT] Add macros to disable diagnostics from GCC and clang
...
Instead of disabling them globally, this will help making finer grained decisions
2021-04-28 13:10:23 +02:00
Jérôme Gardou
1d1a21a920
[SDK] Make sure we build pefixup with AMD64 definitions
2021-04-28 13:10:23 +02:00
Jérôme Gardou
b513c61cd1
[SDK] Fix definition of IMAGE_NT_HEADERS64 in host tools
2021-04-28 13:10:23 +02:00
Jérôme Gardou
79bc62f206
[COMPILER_APITEST] Disable SEH tests for GCC amd64 build
2021-04-28 13:10:23 +02:00
Jérôme Gardou
0995b35bac
[KERNEL32_APITEST] Fix compilation & global wut?? with SSE exception test
2021-04-28 13:10:23 +02:00
Stanislav Motylkov
4959ccc8df
[ACPI] Improve Russian translation INF file
...
Also some minor whitespace fixes
2021-04-27 23:58:53 +03:00
Stanislav Motylkov
ea1f724928
[FC] Add Russian (ru-RU) translation
...
Addendum to 2db87ebd
.
2021-04-27 18:40:23 +03:00
George Bișoc
5222eae730
[NTDLL_APITEST] Implement NtImpersonateAnonymousToken testcase
2021-04-27 12:25:03 +02:00