reactos.git
2 years ago[TRANSLATION] Update Portuguese (pt-PT) translation (#3876) 3876/head
Gabriel Aguiar [Tue, 3 Aug 2021 12:30:33 +0000 (13:30 +0100)]
[TRANSLATION] Update Portuguese (pt-PT) translation (#3876)

Co-authored-by: Gabriel Aguiar <fgygh5804@gmail.com>
Reviewed-by: Joachim Henze <Joachim.Henze@reactos.org>
Reviewed-by: Jose Carlos Jesus <zecarlos1957@hotmail.com>
Reviewed-by: Stanislav Motylkov <x86corez@gmail.com>
Signed-off-by: Gabriel Aguiar <fgsoftwarestudio@gmail.com>
2 years ago[GDI32] Fix Meta file packing recursion issues.
James Tabor [Mon, 6 Sep 2021 23:37:24 +0000 (18:37 -0500)]
[GDI32] Fix Meta file packing recursion issues.

TextOut was looping back adding additional EMR packet to the meta file.

2 years ago[GDI32] Do not fail on path with bitmap fonts.
James Tabor [Mon, 6 Sep 2021 22:53:35 +0000 (17:53 -0500)]
[GDI32] Do not fail on path with bitmap fonts.

Patch by Dmitry Timoshkov : ExtTextOut on a path with bitmap font
selected shouldn't fail.
This just leads to empty path generated.

2 years ago[NTOS:IO] Fix an ASSERT. Addendum to commit 1fd730b7.
Hermès Bélusca-Maïto [Sun, 5 Sep 2021 23:05:14 +0000 (01:05 +0200)]
[NTOS:IO] Fix an ASSERT. Addendum to commit 1fd730b7.

2 years ago[NTOS] Move two CODE_SEG("INIT") to a better place.
Hermès Bélusca-Maïto [Sun, 5 Sep 2021 19:05:05 +0000 (21:05 +0200)]
[NTOS] Move two CODE_SEG("INIT") to a better place.

2 years ago[NTOS:IO] IopInitializeDriverModule(): Set the DRVO_LEGACY_DRIVER flag if the driver... 3749/head
Hermès Bélusca-Maïto [Thu, 10 Jun 2021 23:30:40 +0000 (01:30 +0200)]
[NTOS:IO] IopInitializeDriverModule(): Set the DRVO_LEGACY_DRIVER flag if the driver is not WDM. (#3749)

2 years ago[REACTOS] Refactor CRegKey usage (#3779)
Serge Gautherie [Wed, 30 Jun 2021 22:08:33 +0000 (00:08 +0200)]
[REACTOS] Refactor CRegKey usage (#3779)

- [MSPAINT] ReadDWORD(): Improve 'dwValue' handling
Addendum to 3185db7 (r72158).

- [DRWTSN32] Settings_GetOutputPath(): Fix 'key' handling
Addendum to 1d10606.

- [RAPPS] Remove 2 superfluous 'CRegKey::Close()' calls
Follow-up to 42e111f.

2 years ago[NTDLL_APITEST] Write some NtDuplicateToken tests 3938/head
George Bișoc [Tue, 31 Aug 2021 10:36:28 +0000 (12:36 +0200)]
[NTDLL_APITEST] Write some NtDuplicateToken tests

Implement some tests for NtDuplicateToken syscall that exercises the effective only behavior when the calling thread tries to duplicate an access token but rendering it effective with enabled parts.

2 years ago[NTOS:SE] Implement effective token option upon duplication
George Bișoc [Tue, 31 Aug 2021 10:34:25 +0000 (12:34 +0200)]
[NTOS:SE] Implement effective token option upon duplication

This implements the EffectiveOnly option of SepDuplicateToken routine (used by NtDuplicateToken syscall and other functions alike) which makes the access token effective by removing the disabled parts like privileges and groups.

2 years ago[BOOTDATA] Update caroots.inf 3925/head
Mark Jansen [Sun, 22 Aug 2021 19:54:12 +0000 (21:54 +0200)]
[BOOTDATA] Update caroots.inf

* Add "Certum Trusted Root CA", "Certum EC-384 CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1707097)
* Add "ANF Secure Server Root CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1703942)
* Add "GLOBALTRUST 2020" (https://bugzilla.mozilla.org/show_bug.cgi?id=1697071)
* Add "GlobalSign Root E46", "GlobalSign Root R46" (https://bugzilla.mozilla.org/show_bug.cgi?id=1693173)
* Add "AC RAIZ FNMT-RCM SERVIDORES SEGUROS" (https://bugzilla.mozilla.org/show_bug.cgi?id=1683738)
* Add "NAVER Global Root Certification Authority" (https://bugzilla.mozilla.org/show_bug.cgi?id=1678166)
* Add "Trustwave Global ECC P384 Certification Authority", "Trustwave Global ECC P256 Certification Authority" , "Trustwave Global Certification Authority"(https://bugzilla.mozilla.org/show_bug.cgi?id=1663049)
* Add "e-Szigno Root CA 2017" (https://bugzilla.mozilla.org/show_bug.cgi?id=1645174)
* Add "Microsoft RSA Root Certificate Authority 2017", "Microsoft ECC Root Certificate Authority 2017" (https://bugzilla.mozilla.org/show_bug.cgi?id=1641716)

* Remove "LuxTrust Global Root 2" (https://bugzilla.mozilla.org/show_bug.cgi?id=1641718)
* Remove "Staat der Nederlanden Root CA - G3" (https://bugzilla.mozilla.org/show_bug.cgi?id=1687822)
* Remove "EE Certification Centre Root CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1651211)
* Remove "Trustis FPS Root CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1708307)
* Remove "Global Chambersign Root - 2008", "Chambers of Commerce Root - 2008" (https://bugzilla.mozilla.org/show_bug.cgi?id=1692094)
* Remove "Staat der Nederlanden Root CA - G2" (https://bugzilla.mozilla.org/show_bug.cgi?id=1639987)
* Remove "VeriSign Class 3 Public Primary Certification Authority - G4", "thawte Primary Root CA - G3", "thawte Primary Root CA - G2", "GeoTrust Primary Certification Authority - G3", "VeriSign Class 3 Public Primary Certification Authority - G5", "thawte Primary Root CA", "GeoTrust Primary Certification Authority", "GeoTrust Universal CA 2", "GeoTrust Universal CA", "GeoTrust Global CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1670769)
* Remove "VeriSign Universal Root Certification Authority", "GeoTrust Primary Certification Authority - G2" (https://bugzilla.mozilla.org/show_bug.cgi?id=1686854)
* Remove "OISTE WISeKey Global Root GA CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1653092)
* Remove "Taiwan GRCA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1656077)
* Remove "Sonera Class 2 Root CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1710716)
* Remove "QuoVadis Root CA" (https://bugzilla.mozilla.org/show_bug.cgi?id=1710716)
* Remove "AddTrust External Root" (https://bugzilla.mozilla.org/show_bug.cgi?id=1645199)
* Remove "Verisign Class 3 Public Primary Certification Authority - G3"

CORE-17737
ROSBE-61

2 years ago[GITHUB] Automatically apply ROSTESTS label 3931/head
Mark Jansen [Sun, 5 Sep 2021 14:39:18 +0000 (16:39 +0200)]
[GITHUB] Automatically apply ROSTESTS label

2 years ago[COM_APITEST] Add mmc/certmgr tests
Mark Jansen [Thu, 26 Aug 2021 21:24:27 +0000 (23:24 +0200)]
[COM_APITEST] Add mmc/certmgr tests

CORE-16429

2 years ago[TRANSLATION] Add and improve Russian and Ukrainian translations
Stanislav Motylkov [Sun, 5 Sep 2021 13:22:29 +0000 (16:22 +0300)]
[TRANSLATION] Add and improve Russian and Ukrainian translations

[NETID]
- Add and improve Russian translation. Addendum to b9426a3f and c276681e.

[MACHINE.INF]
- Fix probably a machine translation. Addendum to 2d8274bd.
- Standardize some device names.
- Also add missing Ukrainian translation.

2 years ago[NTDLL_APITEST] Implement NtAdjustPrivilegesToken testcase 3939/head
George Bișoc [Wed, 1 Sep 2021 09:29:50 +0000 (11:29 +0200)]
[NTDLL_APITEST] Implement NtAdjustPrivilegesToken testcase

2 years ago[TRANSLATION] Fix minor typos and untranslated dialogs in Spanish (#3890) 3890/head
Julen Urizar Compains [Sun, 8 Aug 2021 18:11:30 +0000 (20:11 +0200)]
[TRANSLATION] Fix minor typos and untranslated dialogs in Spanish (#3890)

- usetup: New bootsector page.
- shell32: Copy and paste, and moving elements.
  Also, some strings related to the shutdown and logoff.
- Minor Spanish grammar fix - some female words and minor latin american typos.
- First revision of the .inf, that includes the translation of the Services,
  audio, processors and other drivers and minor things.

2 years ago[DSOUND] Improvements to DirectSound(Capture)EnumerateW (#3899) 3899/head
Oleg Dubinskiy [Wed, 11 Aug 2021 18:36:52 +0000 (21:36 +0300)]
[DSOUND] Improvements to DirectSound(Capture)EnumerateW (#3899)

Fix and improve DirectSoundEnumerateW and DirectSoundCaptureEnumerateW implementations in our dsound.

Use the Windows-compatible way to get the device name and pass it to callback.
- Don't use Wine-specific DSDRIVERDESC structure and DRV_QUERYDSOUNDDESC message, declared in sdk/include/dxsdk/dsdriver.h, whose are obsolete even in Wine for now.
- Instead, declare a new WAVEINCAPSW and WAVEOUTCAPSW structures (for input and output appropriately), call waveInGetDevCapsW and WaveOutGetDevCapsW for enumerated device ID and store retieved device name in these structures.
- Then pass them to a lpDSEnumCallbackW as well, without Ansi to Unicode conversion (since the retrieved string is Unicode already).
- Do this both for capture and playback functions.
- Addtionally, add MMSYSERR_BADDEVICEID status code to mmErr macro, because it also might be returned by waveIn/OutGetDevCapsW as well, in case of failure.
- And mark our dosund as forked, because it definitely will not be synced at least until we'll retarget to Vista or newer. Add an appropriate comment.

This fixes incorrect detection of DirectSound audio input and output devices, so now a lot of apps are able to detect it correctly, and can play the sound properly (e.g. AIMP 2.61 and IcyTower from RAPPS).

CORE-7535 CORE-10907 CORE-15324 CORE-15533 CORE-16340

2 years ago[CMLIB] arm64: Define PAGE_SIZE
Serge Gautherie [Mon, 24 May 2021 06:56:17 +0000 (08:56 +0200)]
[CMLIB] arm64: Define PAGE_SIZE

CORE-17518

2 years ago[HALX86:APIC] apic.c: Use new defines some more
Serge Gautherie [Sun, 14 Jun 2020 11:49:22 +0000 (13:49 +0200)]
[HALX86:APIC] apic.c: Use new defines some more

Follow-up to b7a149f.

2 years ago[BOOTDATA] livecd.ini: Fix 'APIC ACPI' typo
Serge Gautherie [Sun, 14 Jun 2020 11:49:22 +0000 (13:49 +0200)]
[BOOTDATA] livecd.ini: Fix 'APIC ACPI' typo

Addentum to 5ee0925.

2 years ago[SETUPLIB] CreateFreeLoaderReactOSEntries(): Fix 'VBoxDebug' typo
Serge Gautherie [Sun, 14 Jun 2020 11:49:22 +0000 (13:49 +0200)]
[SETUPLIB] CreateFreeLoaderReactOSEntries(): Fix 'VBoxDebug' typo

Match newer 84c2695.

Addendum to 69512e2 (r65813).

2 years ago[MSI] Fix dialog.c showing two taskbar panes on Cancel (#3861) 3861/head
Doug Lyons [Fri, 30 Jul 2021 01:56:24 +0000 (20:56 -0500)]
[MSI] Fix dialog.c showing two taskbar panes on Cancel (#3861)

Only show the main dialog pane on taskbar when executing a Cancel dialog.
Assign previous window handle as a parent when creating Cancel dialog box.

CORE-17702

2 years ago[UXTHEME][NTUSER] Fix flashing of scrollbar when scrolling (#3868) 3868/head
Doug Lyons [Sat, 31 Jul 2021 13:16:03 +0000 (08:16 -0500)]
[UXTHEME][NTUSER] Fix flashing of scrollbar when scrolling (#3868)

Based on a patch by I_Kill_Bugs.

2 years ago[TASKMGR] Handles: Get number only, skip data
Serge Gautherie [Wed, 11 Aug 2021 14:57:21 +0000 (16:57 +0200)]
[TASKMGR] Handles: Get number only, skip data

2 years ago[USER32][INCLUDE] Move GetImmFileName declaration from user32.h to user32p.h
Katayama Hirofumi MZ [Tue, 31 Aug 2021 04:42:54 +0000 (13:42 +0900)]
[USER32][INCLUDE] Move GetImmFileName declaration from user32.h to user32p.h

From: win32ss/user/user32/include/user32.h
To: win32ss/user/user32/include/user32p.h

CORE-11700

2 years ago[WDMAUD.DRV] Improve AC97 driver from rapps by defining USE_MMIXER_LIB
Joachim Henze [Mon, 30 Aug 2021 17:52:30 +0000 (19:52 +0200)]
[WDMAUD.DRV] Improve AC97 driver from rapps by defining USE_MMIXER_LIB

By taking alternative code-paths in WdmAud and bypassing Sysaudio.
This is my 2nd attempt to commit that.

Using USE_MMIXER_LIB relies on those 2 previous patches:
0.4.15-dev-765-g b8e936a57b4770e133772cf2dd66f30671a1524b CORE17214 (#3148) wdmaud-racecondition-fix and
0.4.15-dev-796-g a27f0debca4c0fe8cd916d2406124f9d30ae5dbe CORE17276 winmm:mixer-testbot-crash-fix

Defining USE_MMIXER_LIB will fix/improve:
- the test execution times of "GCCLin_x86 on Test VBox" will be dramatically improve (iirc by ~10-15min)
- CORE-8726/CORE-9986/CORE-16564 AC97 driver from rapps will work in the same session that the driver is installed, not a single reboot is needed anymore
- CORE13202 Unhandled exception from wdmaud.drv when recording sound in Scratch 1.4 leads to app-crash (gets fixed even for older builds that did not receive 0.4.15-dev-2794-g 81f8bce yet)
- CORE-13488 A deadlock in "DiabloII" character selection screen and "The Lion King II"
- CORE-9981 "DosBox + Commander Keen6" almost 100% fixed, DosBox + Commander Keen6 properly plays music instead of garbled output,
            same improvement for "ScummVM 2.0 with Monkey Island 2"

The playback is not yet *entirely* perfect, still a few hiccups now and then, but by orders of magnitude better than before.

Defining USE_MMIXER_LIB will also have some negative aspects:
- CORE-17277 crash of dsound:duplex on "GCCLin_x86 on Test VBox" gets unhidden on the bot, but was proven to be broken even beforehand already. The driver beforehand was just not found and the tests were skipped therefore.
- CORE-17278 crash of dsound:capture on "GCCLin_x86 on Test VBox" gets unhidden on the bot, but was proven to be broken even beforehand already. The driver beforehand was just not found and the tests were skipped therefore.
- It may also have a negative impact for CORE-17285 "Realtek HD Audio" but Oleg Dubinsky accepted to tolerate that and aims to approach it differently. I will resolve that as WontFix now.

2 years ago[CMAKE][BOOTDATA] Fix LiveCD does not import caroots.inf into registry CORE-17739...
Julio Carchi [Mon, 30 Aug 2021 11:07:12 +0000 (06:07 -0500)]
[CMAKE][BOOTDATA] Fix LiveCD does not import caroots.inf into registry CORE-17739 CORE-17735 (#3930)

It regressed by 0.4.9-dev-82-g 6158207c318bccaf1767d1a5c1545de45beb113d

KVM https://reactos.org/testman/compare.php?ids=78729,78730 LGTM
VBox https://reactos.org/testman/compare.php?ids=78728,78731 LGTM

2 years ago[IMM32] Rewrite ImmGetContext (#3923)
Katayama Hirofumi MZ [Mon, 23 Aug 2021 21:50:39 +0000 (06:50 +0900)]
[IMM32] Rewrite ImmGetContext (#3923)

- Add ValidateHwndNoErr and Imm32GetContextEx helper functions.
- Rewrite ImmGetContext function by using the helper functions.
CORE-11700

2 years ago[USER32][IMM32] Improve User32InitializeImmEntryTable (#3918)
Katayama Hirofumi MZ [Mon, 23 Aug 2021 07:25:21 +0000 (16:25 +0900)]
[USER32][IMM32] Improve User32InitializeImmEntryTable (#3918)

- Improve User32InitializeImmEntryTable function and related.
- Complete win32ss/user/user32/include/immtable.h table.
- Delete a hack in user32.DllMain and apply my magical tricks. This will fix some access violations in IMM32.
- Add some stubs into IMM32.
CORE-11700

2 years ago[NTOS:SE] SepSinglePrivilegeCheck doesn't expect a NT status code value
George Bișoc [Sun, 22 Aug 2021 09:31:57 +0000 (11:31 +0200)]
[NTOS:SE] SepSinglePrivilegeCheck doesn't expect a NT status code value

Fix a wrong returned datatype of the function, as SepSinglePrivilegeCheck calls the internal private SepPrivilegeCheck function which returns a BOOLEAN value.

2 years ago[NTOS:SE] Annotate the remaining functions with SAL 3897/head
George Bișoc [Fri, 20 Aug 2021 09:48:19 +0000 (11:48 +0200)]
[NTOS:SE] Annotate the remaining functions with SAL

2 years ago[NTOS:SE] Document the whole subsystem in Doxygen format
George Bișoc [Wed, 11 Aug 2021 14:24:45 +0000 (16:24 +0200)]
[NTOS:SE] Document the whole subsystem in Doxygen format

And update the file comment headers.

2 years ago[WIN32KNT_APITEST] Add NtUserGetThreadState testcase (#3922)
Katayama Hirofumi MZ [Sun, 22 Aug 2021 00:02:02 +0000 (09:02 +0900)]
[WIN32KNT_APITEST] Add NtUserGetThreadState testcase (#3922)

CORE-17732, CORE-11700

2 years ago[NTUSER] Improve NtUserQueryWindow (#3915)
Katayama Hirofumi MZ [Fri, 20 Aug 2021 22:31:10 +0000 (07:31 +0900)]
[NTUSER] Improve NtUserQueryWindow (#3915)

- Improve NtUserQueryWindow function.
- Add IMC structure.
- Modify THREADINFO structure.
CORE-11700

2 years ago[IMM32] Implement ImmWINNLSGetIMEHotkey (#3919)
Katayama Hirofumi MZ [Fri, 20 Aug 2021 22:24:12 +0000 (07:24 +0900)]
[IMM32] Implement ImmWINNLSGetIMEHotkey (#3919)

- Implement ImmWINNLSGetIMEHotkey function.
- Modify imm32.spec.
CORE-11700

2 years ago[IMM32] Rewrite ImmProcessKey (#3917)
Katayama Hirofumi MZ [Fri, 20 Aug 2021 22:22:43 +0000 (07:22 +0900)]
[IMM32] Rewrite ImmProcessKey (#3917)

- Rewrite ImmProcessKey function.
- Modify win32ss/include/imetable.h.
- Modify ImmProcessKey prototype.
CORE-1170

2 years ago[INCLUDE] Move WM_IME_SYSTEM from ntuser.h to undocuser.h (#3920)
Katayama Hirofumi MZ [Wed, 18 Aug 2021 23:18:20 +0000 (08:18 +0900)]
[INCLUDE] Move WM_IME_SYSTEM from ntuser.h to undocuser.h (#3920)

CORE-11700

2 years ago[NTUSER][INCLUDE] s/TransMsg[1]/TransMsg[ANYSIZE_ARRAY]/
Katayama Hirofumi MZ [Wed, 18 Aug 2021 10:59:35 +0000 (19:59 +0900)]
[NTUSER][INCLUDE] s/TransMsg[1]/TransMsg[ANYSIZE_ARRAY]/

CORE-11700

2 years ago[NTUSER][INCLUDE] Trivial formatting of TRANSMSG and TRANSMSGLIST
Katayama Hirofumi MZ [Wed, 18 Aug 2021 10:56:47 +0000 (19:56 +0900)]
[NTUSER][INCLUDE] Trivial formatting of TRANSMSG and TRANSMSGLIST

CORE-11700

2 years ago[IMM32] s/0x400/_WIN32_WINNT_NT4/
Katayama Hirofumi MZ [Wed, 18 Aug 2021 10:53:14 +0000 (19:53 +0900)]
[IMM32] s/0x400/_WIN32_WINNT_NT4/

Don't use magic numbers. CORE-11700

2 years ago[IMM32_APITEST] s/0x287/WM_IME_SYSTEM/
Katayama Hirofumi MZ [Wed, 18 Aug 2021 10:48:18 +0000 (19:48 +0900)]
[IMM32_APITEST] s/0x287/WM_IME_SYSTEM/

Don't use magic number. CORE-11700

2 years ago[IMM32] ImmGenerateMessage and ImmTranslateMessage (#3914)
Katayama Hirofumi MZ [Tue, 17 Aug 2021 23:42:12 +0000 (08:42 +0900)]
[IMM32] ImmGenerateMessage and ImmTranslateMessage (#3914)

- Rewrite `ImmGenerateMessage` and `ImmTranslateMessage` functions.
- Rename `INPUTCONTEXTDX.bHasVKey` as `bNeedsTrans`.
- Move `TRANSMSG` structure into `ntuser.h`.
- Add `TRANSMSGLIST` structure into `ntuser.h`.
- Add `UNDETERMINESTRUCT` structure to `ddk/imm.h`.
- Modify `NtUserGetAppImeLevel` prototype.
CORE-11700

2 years ago[IMM32] Refactor Part 2
Katayama Hirofumi MZ [Mon, 16 Aug 2021 06:45:11 +0000 (15:45 +0900)]
[IMM32] Refactor Part 2

Simplify the IMM32 code by deleting middle functions.
CORE-11700

2 years ago[IMM32_APITEST] Add ImmIsUIMessage testcase (#3908)
Katayama Hirofumi MZ [Mon, 16 Aug 2021 06:35:25 +0000 (15:35 +0900)]
[IMM32_APITEST] Add ImmIsUIMessage testcase (#3908)

- Add ImmIsUIMessage testcase in IMM32_APITEST. CORE-11700

2 years ago[IMM32] Rewrite ImmIsUIMessageA/W (#3907)
Katayama Hirofumi MZ [Mon, 16 Aug 2021 06:33:51 +0000 (15:33 +0900)]
[IMM32] Rewrite ImmIsUIMessageA/W (#3907)

- Rewrite ImmIsUIMessageA and ImmIsUIMessageW functions.
- Modify HIMC and HIMCC handle types for strictness. Add typecasts.
- Add WM_IME_SYSTEM macro.
- Modify imm32.spec.
CORE-11700

2 years ago[IMM32] Rewrite ImmEnumRegisterWordA/W (#3906)
Katayama Hirofumi MZ [Mon, 16 Aug 2021 06:31:39 +0000 (15:31 +0900)]
[IMM32] Rewrite ImmEnumRegisterWordA/W (#3906)

- Rewrite ImmEnumRegisterWordA and ImmEnumRegisterWordW functions.
- Modify win32ss/include/imetable.h.
CORE-11700

2 years ago[RTL/x64] Fix a typo RtplUnwindInternal -> RtlpUnwindInternal (#3912)
Kento Oki [Mon, 16 Aug 2021 01:23:02 +0000 (10:23 +0900)]
[RTL/x64] Fix a typo RtplUnwindInternal -> RtlpUnwindInternal (#3912)

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.