reactos.git
2 years ago[FREELDR][NTOS][HALPPC][SDK] Remove PowerPC code 3888/head
Victor Perevertkin [Sat, 7 Aug 2021 22:50:20 +0000 (01:50 +0300)]
[FREELDR][NTOS][HALPPC][SDK] Remove PowerPC code

Remove PowerPC-related code from the kernel, HAL, SDK and
Freeloader.

2 years ago[IMM32] Delete Wine-specific functions (#3902)
Katayama Hirofumi MZ [Sat, 14 Aug 2021 01:42:02 +0000 (10:42 +0900)]
[IMM32] Delete Wine-specific functions (#3902)

We don't need Wine-specific functions for Japanese input.
- Delete __wine_get_ui_window, __wine_register_window and __wine_unregister_window functions.
- Modify imm32.spec.
CORE-11700

2 years ago[IMM32] Rewrite ImmGetRegisterWordStyleA/W (#3901)
Katayama Hirofumi MZ [Sat, 14 Aug 2021 01:39:20 +0000 (10:39 +0900)]
[IMM32] Rewrite ImmGetRegisterWordStyleA/W (#3901)

- Rewrite ImmGetRegisterWordStyleA and ImmGetRegisterWordStyleW functions.
- Modify win32ss/include/imetable.h.
CORE-11700

2 years ago[IMM32] Refactor and simplify code (#3900)
Katayama Hirofumi MZ [Sat, 14 Aug 2021 01:38:06 +0000 (10:38 +0900)]
[IMM32] Refactor and simplify code (#3900)

- Add Imm32WideFromAnsi, Imm32AnsiFromWide and Imm32IsCrossThreadAccess helper functions.
- Simplify the IMM32 code by using the helper functions.
CORE-11700

2 years ago[IMM32] Rewrite ImmGetProperty (#3896)
Katayama Hirofumi MZ [Thu, 12 Aug 2021 03:33:12 +0000 (12:33 +0900)]
[IMM32] Rewrite ImmGetProperty (#3896)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmGetConversionListA/W (#3895)
Katayama Hirofumi MZ [Thu, 12 Aug 2021 03:32:02 +0000 (12:32 +0900)]
[IMM32] Rewrite ImmGetConversionListA/W (#3895)

- Rewrite ImmGetConversionListA and ImmGetConversionListW functions.
- Delete useless convert_candidatelist_AtoW and convert_candidatelist_WtoA functions.
CORE-11700

2 years ago[IMM32] Rewrite ImmUnregisterWordW (#3894)
Katayama Hirofumi MZ [Thu, 12 Aug 2021 03:31:06 +0000 (12:31 +0900)]
[IMM32] Rewrite ImmUnregisterWordW (#3894)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmUnregisterWordA (#3893)
Katayama Hirofumi MZ [Thu, 12 Aug 2021 03:30:13 +0000 (12:30 +0900)]
[IMM32] Rewrite ImmUnregisterWordA (#3893)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmRegisterWordW (#3892)
Katayama Hirofumi MZ [Thu, 12 Aug 2021 03:29:02 +0000 (12:29 +0900)]
[IMM32] Rewrite ImmRegisterWordW (#3892)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmRegisterWordA (#3881)
Katayama Hirofumi MZ [Mon, 9 Aug 2021 23:08:23 +0000 (08:08 +0900)]
[IMM32] Rewrite ImmRegisterWordA (#3881)

- Rewrite ImmRegisterWordA function.
- Modify imetable.h.
CORE-11700

2 years ago[IMM32] Rewrite ImmGetVirtualKey (#3889)
Katayama Hirofumi MZ [Mon, 9 Aug 2021 23:03:32 +0000 (08:03 +0900)]
[IMM32] Rewrite ImmGetVirtualKey (#3889)

Implementing Japanese input. CORE-11700

2 years ago[GDI32] Revise IntTMWFixUp Raster Font List (#3808)
Doug Lyons [Mon, 9 Aug 2021 11:07:04 +0000 (06:07 -0500)]
[GDI32] Revise IntTMWFixUp Raster Font List (#3808)

CORE-17662
CORE-17723

2 years agoCheck for PAE
James Tabor [Mon, 9 Aug 2021 01:37:06 +0000 (20:37 -0500)]
Check for PAE

Checking for PAE and set some logic later to support it.

2 years ago[IMM32][SDK] Rename some members of INPUTCONTEXTDX
Katayama Hirofumi MZ [Sun, 8 Aug 2021 15:05:06 +0000 (00:05 +0900)]
[IMM32][SDK] Rename some members of INPUTCONTEXTDX

CORE-11700

2 years ago[DHCPCSVC] Make the DHCP client service stoppable
Eric Kohl [Sun, 8 Aug 2021 12:09:31 +0000 (14:09 +0200)]
[DHCPCSVC] Make the DHCP client service stoppable

- Make all threads (pipe thread, adapter discovery thread and dispatcher thread) wait on the stop event.
- Close shared resources in the main (dispatcher) thread after the pipe thread and the adapter discovery thread have shut down.

This enables us to stop and restart the DHCP client properly.

CORE-14390

2 years ago[IMM32] Delete useless ImmInternalSendIMENotify function
Katayama Hirofumi MZ [Sun, 8 Aug 2021 08:46:02 +0000 (17:46 +0900)]
[IMM32] Delete useless ImmInternalSendIMENotify function

CORE-11700

2 years ago[IMM32] Rewrite ImmSetCompositionFontA/W (#3886)
Katayama Hirofumi MZ [Sun, 8 Aug 2021 08:35:34 +0000 (17:35 +0900)]
[IMM32] Rewrite ImmSetCompositionFontA/W (#3886)

- Rewrite ImmSetCompositionFontA and ImmSetCompositionFontW functions.
- Add INPUTCONTEXTDX structure as an extension of INPUTCONTEXT.
CORE-11700

2 years ago[SFLOPPY] Move storage/floppy_new -> storage/class/sfloppy 3887/head
Victor Perevertkin [Sat, 7 Aug 2021 22:35:59 +0000 (01:35 +0300)]
[SFLOPPY] Move storage/floppy_new -> storage/class/sfloppy

This is a SCSI Floppy driver, which depends on classpnp.
Don't mix that with the other floppy (FDC) stack.

2 years ago[CDROM][DISK] Remove "_new" suffix from cdrom and disk drivers
Victor Perevertkin [Sat, 7 Aug 2021 22:25:05 +0000 (01:25 +0300)]
[CDROM][DISK] Remove "_new" suffix from cdrom and disk drivers

2 years ago[CDROM][CLASS2][DISK] Remove the old class drivers stack
Victor Perevertkin [Sat, 7 Aug 2021 22:15:10 +0000 (01:15 +0300)]
[CDROM][CLASS2][DISK] Remove the old class drivers stack

These drivers are based on NT4 DDK sample code, were originally
started by Alexey Bragin and then constantly patched by Pierre
Schweitzer to fix compatibility with NT5+ storage stack.
Replaced with Microsoft drivers published on GitHub by an open
license.
These drivers were originally added as part of 4e7b22b216725e1e7c0dff19ab0312039ff5005c

2 years ago[IMM32] Rewrite ImmSetCandidateWindow (#3884)
Katayama Hirofumi MZ [Sat, 7 Aug 2021 23:34:47 +0000 (08:34 +0900)]
[IMM32] Rewrite ImmSetCandidateWindow (#3884)

Implementing Japanese input... CORE-11700

2 years ago[TRANSLATION] Add/update Hungarian translation of deskmon, notepad, winlogon, mycomput
Tibor Lajos Füzi [Wed, 4 Aug 2021 15:55:41 +0000 (17:55 +0200)]
[TRANSLATION] Add/update Hungarian translation of deskmon, notepad, winlogon, mycomput

2 years ago[NTOS:MM] Implement MmFlushImageSection(MmFlushForWrite)
Jérôme Gardou [Fri, 6 Aug 2021 16:14:10 +0000 (18:14 +0200)]
[NTOS:MM] Implement MmFlushImageSection(MmFlushForWrite)

2 years ago[LDR] Disable Logging when images overlap CORE-17635
Joachim Henze [Fri, 6 Aug 2021 17:25:14 +0000 (19:25 +0200)]
[LDR] Disable Logging when images overlap CORE-17635

We found out what we wanted to find out:
the remaining TODOs for the Python script.

So we can silence the DPRINTs again for the time being
to reduce spam from 3rd party dlls.
Paying tribute to Mark Jansen ;)

2 years ago[WIN32K] Do not release twice the lock on error path
Jérôme Gardou [Fri, 6 Aug 2021 13:18:21 +0000 (15:18 +0200)]
[WIN32K] Do not release twice the lock on error path

2 years ago[CMAKE] Do not disable optimisations on ntoskrnl build
Jérôme Gardou [Fri, 6 Aug 2021 07:51:57 +0000 (09:51 +0200)]
[CMAKE] Do not disable optimisations on ntoskrnl build

2 years ago[WIN32K] Init User part after GDI one.
Jérôme Gardou [Wed, 4 Aug 2021 07:49:18 +0000 (09:49 +0200)]
[WIN32K] Init User part after GDI one.

But Initialize user lock first thing to avoid hitting newly introduced ASSERTS

This partly reverts commit 515d83a883ae01c8ccaca6d56e47d0ae4bdb0305.

2 years ago[IMM32] Rewrite ImmSetConversionStatus (#3879)
Katayama Hirofumi MZ [Thu, 5 Aug 2021 22:15:19 +0000 (07:15 +0900)]
[IMM32] Rewrite ImmSetConversionStatus (#3879)

CORE-11700

2 years ago[SETUPAPI] Add stubs for SetupDiSetDriverInstallParamsA/W
Hervé Poussineau [Sun, 18 Jul 2021 13:34:03 +0000 (15:34 +0200)]
[SETUPAPI] Add stubs for SetupDiSetDriverInstallParamsA/W

2 years ago[PSDK] Add DRIVER_UNTRUSTED_RANK define
Hervé Poussineau [Sun, 18 Jul 2021 13:36:30 +0000 (15:36 +0200)]
[PSDK] Add DRIVER_UNTRUSTED_RANK define

2 years ago[CRT] Add one missing entry to _syserr_list array, fix _sys_nerr definition
Jérôme Gardou [Thu, 5 Aug 2021 13:33:43 +0000 (15:33 +0200)]
[CRT] Add one missing entry to _syserr_list array, fix _sys_nerr definition

Partial revert of 296e07b94d79b9e6fec3b05de26c4afad3b1f4e1

2 years ago[IMM32] Implement ImmGetGuideLineA/W (#3877)
Katayama Hirofumi MZ [Thu, 5 Aug 2021 12:43:21 +0000 (21:43 +0900)]
[IMM32] Implement ImmGetGuideLineA/W (#3877)

Implement ImmGetGuideLineA and ImmGetGuideLineW functions. CORE-11700

2 years ago[NTOS:MM] Fix the mess created by the "balancer thread"
Jérôme Gardou [Wed, 4 Aug 2021 18:35:14 +0000 (20:35 +0200)]
[NTOS:MM] Fix the mess created by the "balancer thread"

When processing:
  Make sure that the process is not terminating.
  Make sure that the process WorkingSet is still valid
  Protect accessing & writing to PTEs by acquiring the working set lock

CORE-17595 CORE-17642

2 years agoRevert "[NTOS:MM] Do proper checks & acquire proper locks when sweeping user pages"
Jérôme Gardou [Wed, 4 Aug 2021 21:57:39 +0000 (23:57 +0200)]
Revert "[NTOS:MM] Do proper checks & acquire proper locks when sweeping user pages"

This reverts commit 7c006df7e0ea1fe3215137199bca7f4a0215a351.
Note to self: This is what happens when you have too many branch and push the wrong one.

2 years ago[NTOS:MM] Do proper checks & acquire proper locks when sweeping user pages
Jérôme Gardou [Wed, 4 Aug 2021 18:35:14 +0000 (20:35 +0200)]
[NTOS:MM] Do proper checks & acquire proper locks when sweeping user pages

CORE-17595

2 years ago[NTOS:MM] When mapping pages for zeroing them, disable cache, enable write through
Jérôme Gardou [Mon, 2 Aug 2021 16:48:07 +0000 (18:48 +0200)]
[NTOS:MM] When mapping pages for zeroing them, disable cache, enable write through

Idea from Thomas Faber

2 years ago[NTOS:MM] In page zeroing thread, zero more than one page at a time.
Jérôme Gardou [Mon, 2 Aug 2021 16:46:05 +0000 (18:46 +0200)]
[NTOS:MM] In page zeroing thread, zero more than one page at a time.

2 years ago[NTOS:MM] Use KeZeroPages in zeroing thread
Jérôme Gardou [Mon, 2 Aug 2021 15:32:57 +0000 (17:32 +0200)]
[NTOS:MM] Use KeZeroPages in zeroing thread

2 years ago[NTOS:MM] Do not zero-fill pages when not needed
Jérôme Gardou [Mon, 2 Aug 2021 15:06:35 +0000 (17:06 +0200)]
[NTOS:MM] Do not zero-fill pages when not needed

2 years ago[NTOS:KE] Also rewrite KeZeroPages in assembly for amd64
Jérôme Gardou [Fri, 25 Jun 2021 08:24:04 +0000 (10:24 +0200)]
[NTOS:KE] Also rewrite KeZeroPages in assembly for amd64

Let's stick with "rep movsq" until we are able to have more precise benchmarks

2 years ago[NTOS:KE] Rewrite KeZeroPages in assembly
Jérôme Gardou [Thu, 24 Jun 2021 09:41:24 +0000 (11:41 +0200)]
[NTOS:KE] Rewrite KeZeroPages in assembly

We spend a lot of time in this function, let's optimize it.

2 years ago[NTFS] Check file isn't encrypted
Marat Nagayev [Wed, 4 Aug 2021 06:03:39 +0000 (09:03 +0300)]
[NTFS] Check file isn't encrypted

2 years ago[NTFS] Add new defines for file attributes
Marat Nagayev [Wed, 4 Aug 2021 06:01:42 +0000 (09:01 +0300)]
[NTFS] Add new defines for file attributes

2 years ago[NTOS:MM] Copy the WorkingSet page when initializing "hand-built" process
Jérôme Gardou [Wed, 28 Jul 2021 14:25:29 +0000 (16:25 +0200)]
[NTOS:MM] Copy the WorkingSet page when initializing "hand-built" process

CORE-17642

2 years ago[IMM32] Remove function names from TRACEs
Katayama Hirofumi MZ [Wed, 4 Aug 2021 00:49:41 +0000 (09:49 +0900)]
[IMM32] Remove function names from TRACEs

CORE-11700

2 years ago[IMM32] ImmCreateContext, ImmDestroyContext, DllMain etc. (#3867)
Katayama Hirofumi MZ [Wed, 4 Aug 2021 00:41:59 +0000 (09:41 +0900)]
[IMM32] ImmCreateContext, ImmDestroyContext, DllMain etc. (#3867)

- Rewrite ImmCreateContext, ImmDestroyContext, and DllMain functions.
- Add g_hImm32Inst, g_bClientRegd, and g_SharedInfo global variables. Delete g_dwImm32Flags (that was g_psi->dwSRVIFlags).
- Implement ImmLoadIME and ImmRegisterClient functions.
- Modify CLIENTIMC and IMEDPI structures. Move CLIENTIMC definition into ntuser.h.
- Add file win32ss/include/imetable.h.
- Rename SRVINFO_METRICS macro as SRVINFO_CICERO_ENABLED.
CORE-11700

2 years ago[CRT_APITEST] Add static_crt_apitest
Timo Kreuzer [Sun, 18 Jul 2021 18:03:03 +0000 (20:03 +0200)]
[CRT_APITEST] Add static_crt_apitest

2 years ago[PSDK] Add some missing ARM definitions
Timo Kreuzer [Mon, 2 Aug 2021 12:12:43 +0000 (14:12 +0200)]
[PSDK] Add some missing ARM definitions

2 years ago[CRT] Implement crt_process_init()
Timo Kreuzer [Thu, 29 Jul 2021 07:38:42 +0000 (09:38 +0200)]
[CRT] Implement crt_process_init()

2 years ago[CRT] Improve CMake files
Timo Kreuzer [Wed, 28 Jul 2021 08:18:12 +0000 (10:18 +0200)]
[CRT] Improve CMake files

2 years ago[CRT] Fix _fmode
Timo Kreuzer [Sat, 24 Jul 2021 14:27:43 +0000 (16:27 +0200)]
[CRT] Fix _fmode

Remove mingw-w64 version of _fmode. _fmode should not be linked directly into the executable. Instead, the export from msvcrt should be used. On Windows 10 it's defined to *__p__fmode(), which is exported from ucrtbase.dll
Also _fmode in msvcrt.dll is initialized with 0.

2 years ago[CRT] Fix some data exports
Timo Kreuzer [Sun, 25 Jul 2021 13:15:04 +0000 (15:15 +0200)]
[CRT] Fix some data exports

* Fix initialization of _commode. In msvcrt it is allocated from .bss, i.e. initialized with 0.
* _fileinfo is initialized with -1
* _aexit_rtn is a pointer, not a function
* Fix _sys_nerr

2 years ago[CRT_APITEST] Add tests for data exports
Timo Kreuzer [Sun, 25 Jul 2021 13:50:33 +0000 (15:50 +0200)]
[CRT_APITEST] Add tests for data exports

2 years ago[CRT] Fix some _CRTIMP
Timo Kreuzer [Sat, 31 Jul 2021 15:15:30 +0000 (17:15 +0200)]
[CRT] Fix some _CRTIMP

Get rid of the ugly __MINGW_IMP_SYMBOL hacks.

2 years ago[CRT] Fix CRT headers a bit
Timo Kreuzer [Wed, 28 Jul 2021 08:25:22 +0000 (10:25 +0200)]
[CRT] Fix CRT headers a bit

* Remove unused internal version of float.h
* Define _STATIC_ASSERT in crtdefs.h
* Add some missing declarations

2 years ago[CRT] Remove _fmode and _commode initialization
Timo Kreuzer [Sat, 24 Jul 2021 14:27:20 +0000 (16:27 +0200)]
[CRT] Remove _fmode and _commode initialization

This "initialization" copies the value of the local variable to the one exported from msvcrt, which is the same. Also there shouldn't be a local version of the variable in the first place.

2 years ago[IMM32] Rewrite ImmInstallIMEA (#3873)
Katayama Hirofumi MZ [Tue, 3 Aug 2021 22:32:13 +0000 (07:32 +0900)]
[IMM32] Rewrite ImmInstallIMEA (#3873)

Implementing Japanese input... CORE-11700

2 years ago[WIN32K:NTUSER] In debug builds, enable free & tail checking when creating heaps
Jérôme Gardou [Fri, 30 Jul 2021 13:59:40 +0000 (15:59 +0200)]
[WIN32K:NTUSER] In debug builds, enable free & tail checking when creating heaps

Actually catches bugs

2 years ago[WIN32K:USER] Fix potential use after free when painting child windows
Jérôme Gardou [Fri, 30 Jul 2021 13:44:57 +0000 (15:44 +0200)]
[WIN32K:USER] Fix potential use after free when painting child windows

2 years ago[WIN32K:NTUSER] Assert global user lock is held exclusively when using global & deskt...
Jérôme Gardou [Fri, 30 Jul 2021 13:42:09 +0000 (15:42 +0200)]
[WIN32K:NTUSER] Assert global user lock is held exclusively when using global & desktop heaps

They're explicitly not serialized because we count on this.

2 years ago[WIN32K:NTUSER] Make sure to hold User Global Lock before unmapping desktop heap
Jérôme Gardou [Fri, 30 Jul 2021 13:58:22 +0000 (15:58 +0200)]
[WIN32K:NTUSER] Make sure to hold User Global Lock before unmapping desktop heap

2 years ago[WIN32K:NTUSER] Allocate & free timers under global user lock
Jérôme Gardou [Fri, 30 Jul 2021 13:40:33 +0000 (15:40 +0200)]
[WIN32K:NTUSER] Allocate & free timers under global user lock

2 years ago[WIN32K] On init, start by initializing NtUser stuff
Jérôme Gardou [Fri, 30 Jul 2021 13:38:10 +0000 (15:38 +0200)]
[WIN32K] On init, start by initializing NtUser stuff

Allocate gpsi (Global Server Info) after initializing & grabbing Userlock

2 years ago[NTOS:MM] Remove dead code
Jérôme Gardou [Tue, 3 Aug 2021 08:57:12 +0000 (10:57 +0200)]
[NTOS:MM] Remove dead code

2 years ago[CMAKE] Update DLL base addresses
Jérôme Gardou [Tue, 3 Aug 2021 08:36:32 +0000 (10:36 +0200)]
[CMAKE] Update DLL base addresses

2 years ago[GITHUB] Build Release configuration for all compilers 3838/head
Victor Perevertkin [Sun, 1 Aug 2021 21:26:51 +0000 (00:26 +0300)]
[GITHUB] Build Release configuration for all compilers

2 years ago[CMAKE] Add memcmp to libntoskrnl for both clang and clang-cl
Victor Perevertkin [Sun, 1 Aug 2021 21:23:10 +0000 (00:23 +0300)]
[CMAKE] Add memcmp to libntoskrnl for both clang and clang-cl

2 years ago[MSVCRTEX] Add some routines required for clang optimizations
Victor Perevertkin [Sun, 1 Aug 2021 21:19:31 +0000 (00:19 +0300)]
[MSVCRTEX] Add some routines required for clang optimizations

- Include exp2* in all clang builds
- Include __aulldiv for i386 ones

Those are required, at least for clang-cl Release configuration

2 years ago[CONFIGURE] Make configure.sh print out an error when CMake fails
Nexware [Sun, 1 Aug 2021 22:40:43 +0000 (18:40 -0400)]
[CONFIGURE] Make configure.sh print out an error when CMake fails

2 years ago[UXTHEME] Fix incorrect part IDs in button class map.
Robert Naumann [Sat, 31 Jul 2021 20:14:38 +0000 (22:14 +0200)]
[UXTHEME] Fix incorrect part IDs in button class map.

Wine Patch by Zhiyi Zhang. (Commit ec82a0ebe65a0bd9f41c743d301c853e77dd8b8b)

2 years ago[NTOS:SE] Handle the reference logon session of the token 3847/head
George Bișoc [Sun, 25 Jul 2021 09:37:02 +0000 (11:37 +0200)]
[NTOS:SE] Handle the reference logon session of the token

When creating or duplicating an access token object, make sure that the logon session is getting referenced by the token must be inserted onto the logon reference member (a.k.a LogonSession) for proper logon session referencing tracking.

Also when a token object is about to be destroyed or that we are taking away a reference session from it, we must ensure that the referenced logon session data gets removed from the token in question.
CORE-17700

2 years ago[NTOS:SE] Implement logon reference insertion/removal to tokens
George Bișoc [Sun, 25 Jul 2021 09:34:45 +0000 (11:34 +0200)]
[NTOS:SE] Implement logon reference insertion/removal to tokens

2 years ago[NTOS:SE] Unify all the SRM tags in one place
George Bișoc [Sat, 24 Jul 2021 10:21:28 +0000 (12:21 +0200)]
[NTOS:SE] Unify all the SRM tags in one place

And rename SEP_LOGON_SESSION_TAG and SEP_LOGON_NOTIFICATION_TAG to TAG_LOGON_SESSION and TAG_LOGON_NOTIFICATION respectively.

2 years ago[ARM/CRT] Refactor several functions (#3865) 3865/head
Roman Masanin [Sat, 31 Jul 2021 01:04:25 +0000 (04:04 +0300)]
[ARM/CRT] Refactor several functions (#3865)

- Make __fto64 function more readable
- Call worker function directly for __rt_sdiv/udiv
- Adapt __rt_sdiv64/udiv64 asm shims accordingly
- Add header files to CMake source list

CORE-17607 CORE-17614 CORE-17703 CORE-17604

Addendum to f2bc1f0ee448094e and 54406bf4.

2 years ago[IMM32] Improve ImmSimulateHotKey (#3858)
Katayama Hirofumi MZ [Sat, 31 Jul 2021 06:56:11 +0000 (15:56 +0900)]
[IMM32] Improve ImmSimulateHotKey (#3858)

- Improve ImmSimulateHotKey function.
- Modify IMEDPI structure.
CORE-11700

2 years ago[IMM32] Rewrite ImmEnumInputContext (#3859)
Katayama Hirofumi MZ [Sat, 31 Jul 2021 06:45:07 +0000 (15:45 +0900)]
[IMM32] Rewrite ImmEnumInputContext (#3859)

- Rewrite ImmEnumInputContext function.
- Modify NtUserBuildHimcList.
CORE-11700

2 years ago[CRT/ARM] __fto64: Assembly wrappers are actually not needed anymore
Stanislav Motylkov [Fri, 30 Jul 2021 19:48:03 +0000 (22:48 +0300)]
[CRT/ARM] __fto64: Assembly wrappers are actually not needed anymore

Addendum to e448094e. CORE-17703 CORE-17604

2 years ago[NTOS:MM] Fix MiIsUserPte inline
Jérôme Gardou [Fri, 30 Jul 2021 16:54:30 +0000 (18:54 +0200)]
[NTOS:MM] Fix MiIsUserPte inline

2 years ago[FFS] Remove the FFS/UFS driver 3837/head
Victor Perevertkin [Fri, 23 Jul 2021 16:20:10 +0000 (19:20 +0300)]
[FFS] Remove the FFS/UFS driver

The upstream driver is not maintained and the file system itself
is in a semi-abandoned state.
Originally imported at 3a3ef631d12d8ac7ee2a95abf8c1c6e4815ac1a5

The driver is written by Lee Jae-Hong, updated by Bo Brantén.
ReactOS porting made by Peter Hater and Pierre Schweitzer.
Follow updates at http://www.acc.umu.se/~bosse/

FS Recognizer code is left to keep the FS support as an
installable driver.

CORE-11040

2 years ago[REISERFS] Remove the ReiserFS driver
Victor Perevertkin [Fri, 23 Jul 2021 18:12:31 +0000 (21:12 +0300)]
[REISERFS] Remove the ReiserFS driver

The upstream driver is not maintained and the file system itself
is in a semi-abandoned state.
Originally imported at e308102f4ab47c3c6a9107c743cbf3ec2c38f690

The driver is written by Mark W Piper, updated by Bo Brantén.
ReactOS porting made by Peter Hater and Pierre Schweitzer.
Follow updates at http://www.acc.umu.se/~bosse/

FS Recognizer code is left to keep the FS support as an
installable driver.

CORE-11005

2 years ago[CRT_APITEST] Add tests for __dtoi64/dtou64/stoi64/stou64 on ARM (#3848) 3848/head
Roman Masanin [Mon, 26 Jul 2021 21:31:29 +0000 (00:31 +0300)]
[CRT_APITEST] Add tests for __dtoi64/dtou64/stoi64/stou64 on ARM (#3848)

CORE-17703 CORE-17604

2 years ago[CRT/ARM] Implement __dtoi64/dtou64/stoi64/stou64 functions (#3848)
Roman Masanin [Sun, 25 Jul 2021 14:50:48 +0000 (17:50 +0300)]
[CRT/ARM] Implement __dtoi64/dtou64/stoi64/stou64 functions (#3848)

CORE-17703 CORE-17604

2 years ago[CRT/ARM] Fix modulus on division (#3856) 3856/head
Roman Masanin [Wed, 28 Jul 2021 11:34:59 +0000 (14:34 +0300)]
[CRT/ARM] Fix modulus on division (#3856)

This fixes all tests added in 759bdedc. Addendum to f2bc1f0e.

CORE-17607 CORE-17614 CORE-17604

2 years ago[CRT_APITEST] Add tests for __rt_sdiv/udiv/sdiv64/udiv64 on ARM
Stanislav Motylkov [Wed, 28 Jul 2021 19:38:21 +0000 (22:38 +0300)]
[CRT_APITEST] Add tests for __rt_sdiv/udiv/sdiv64/udiv64 on ARM

Addendum to f2bc1f0e and f1e2c6cb.

CORE-17607 CORE-17614 CORE-17604

2 years ago[IMM32] s/idThread/dwThreadId/
Katayama Hirofumi MZ [Wed, 28 Jul 2021 23:21:33 +0000 (08:21 +0900)]
[IMM32] s/idThread/dwThreadId/

- Rename idThread variable as dwThreadId.
- Rename idImeThread variable as dwImeThreadId.
CORE-11700

2 years ago[IMM32] Rewrite ImmSetCompositionWindow (#3855)
Katayama Hirofumi MZ [Wed, 28 Jul 2021 14:26:02 +0000 (23:26 +0900)]
[IMM32] Rewrite ImmSetCompositionWindow (#3855)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Implement ImmLoadLayout (#3854)
Katayama Hirofumi MZ [Wed, 28 Jul 2021 14:25:10 +0000 (23:25 +0900)]
[IMM32] Implement ImmLoadLayout (#3854)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmNotifyIME (#3853)
Katayama Hirofumi MZ [Wed, 28 Jul 2021 14:24:09 +0000 (23:24 +0900)]
[IMM32] Rewrite ImmNotifyIME (#3853)

Implementing Japanese input... CORE-11700

2 years ago[IMM32] Rewrite ImmSetStatusWindowPos (#3852)
Katayama Hirofumi MZ [Wed, 28 Jul 2021 14:23:09 +0000 (23:23 +0900)]
[IMM32] Rewrite ImmSetStatusWindowPos (#3852)

Implementing Japanese input... CORE-11700

2 years ago[CRT] Fix _matherror and _setusermatherror
Timo Kreuzer [Sat, 24 Jul 2021 16:13:06 +0000 (18:13 +0200)]
[CRT] Fix _matherror and _setusermatherror

We previously used 2 different versions: one from wine and one from mingw-w64.
The former was used in msvcrt, the latter was statically compiled into the executable. When using MS libs, there is only one _matherr, which is statically linked into the executable and does nothing (it's not really a function for users to be called).
_setusermatherror should only exist in msvcrt and not statically, which wouldn't work at all.

2 years ago[CRT] Define NULL in crtdefs.h
Timo Kreuzer [Tue, 27 Jul 2021 13:08:26 +0000 (15:08 +0200)]
[CRT] Define NULL in crtdefs.h

2 years ago[NTOS:MM] Annotate some functions with regards to MmPfnLock
Jérôme Gardou [Fri, 23 Jul 2021 15:14:47 +0000 (17:14 +0200)]
[NTOS:MM] Annotate some functions with regards to MmPfnLock

Also fix MI_ASSERT_PFN_LOCK_HELD macro.
Now in debug builds, SpinLocks are always non-zero when held.

2 years ago[NTOS:MM] Always release PFN lock in MmDereferenceSegmentWithLock
Jérôme Gardou [Fri, 23 Jul 2021 14:38:56 +0000 (16:38 +0200)]
[NTOS:MM] Always release PFN lock in MmDereferenceSegmentWithLock

All callers release it after calling it.
CORE-17698

2 years ago[VIDEOPRT] Fix updating of new registry path values
Timo Kreuzer [Thu, 22 Jul 2021 14:13:38 +0000 (16:13 +0200)]
[VIDEOPRT] Fix updating of new registry path values

CORE-17688
When a new driver is installed for the same device (like VBoxVideo), it uses the same hardware enum registry key and thus reuses the same DisplayId and the same display registry key. Therefore we need to update the setting in that key, even when the key already exists.

This seems to work good and not cause any issues, but testing indicated that on Windows some values are only updated, when the driver has changed. If neccessary, this can be achieved by updating and querying the ActiveService value in the device enum key (e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_80EE&DEV_BEEF&SUSYS_00000000&REV_00\3&267a616a&0&10\Control: ActiveService). If that doesn't match the current device name (from DriverExtension->RegistryPath) the values should be copied over.

2 years ago[WIN32K] Fix uninitialized variable
Timo Kreuzer [Mon, 19 Jul 2021 06:55:09 +0000 (08:55 +0200)]
[WIN32K] Fix uninitialized variable

2 years ago[CRT/arm] Update file headers to new format and change license to MIT
Timo Kreuzer [Sat, 24 Jul 2021 09:41:06 +0000 (11:41 +0200)]
[CRT/arm] Update file headers to new format and change license to MIT

* Add Raman Masanin to copyrights
* Add some comments
* Return long long from __rt_sdiv (no functional difference, just for clarity)

2 years ago[CPPRT] arm: Add 2 'MSVCRTEX_eh_vector_*structor_iterator' aliases
Serge Gautherie [Mon, 24 May 2021 06:56:17 +0000 (08:56 +0200)]
[CPPRT] arm: Add 2 'MSVCRTEX_eh_vector_*structor_iterator' aliases

CORE-17606

2 years ago[NTOS:SE] Remove redundant commented call on token duplication
George Bișoc [Sun, 25 Jul 2021 16:02:32 +0000 (18:02 +0200)]
[NTOS:SE] Remove redundant commented call on token duplication

When duplicating an access token, the authentication ID is already copied from the existing token to the new one anyway so there's no point on having the commented call still left in the code.

2 years ago[DRWTSN32] Fix Clang build. Addendum to bdab437f.
Stanislav Motylkov [Sun, 25 Jul 2021 14:52:33 +0000 (17:52 +0300)]
[DRWTSN32] Fix Clang build. Addendum to bdab437f.

Also use a macro for better code readability.

Co-authored-by: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
2 years ago[DRWTSN32] Recognize STATUS_ASSERTION_FAILURE as exception number
Stanislav Motylkov [Sun, 25 Jul 2021 12:32:08 +0000 (15:32 +0300)]
[DRWTSN32] Recognize STATUS_ASSERTION_FAILURE as exception number