reactos.git
2 years ago[KERNEL32_APITEST] Improve SetComputerNameExW test a bit (#1580)
Serge Gautherie [Sun, 26 May 2019 17:33:03 +0000 (19:33 +0200)]
[KERNEL32_APITEST] Improve SetComputerNameExW test a bit (#1580)

Addendum to 8aeb6a9. ROSTESTS-227

2 years ago[WIN32SS][NTGDI] Improve Text Transformation (#1573)
Katayama Hirofumi MZ [Sun, 26 May 2019 07:12:35 +0000 (16:12 +0900)]
[WIN32SS][NTGDI] Improve Text Transformation (#1573)

Reduce gdi32_apitest!TextTransform failures. Optimize for speed. Add Width and Escapement parameters to FONT_CACHE_ENTRY structure.
CORE-15554

2 years ago[CONSRV] Minor code cleanup.
Hermès Bélusca-Maïto [Sat, 25 May 2019 22:00:39 +0000 (00:00 +0200)]
[CONSRV] Minor code cleanup.

2 years ago[KERNEL32_APITEST] Add SetComputerNameExW testcase (#1578)
Katayama Hirofumi MZ [Sat, 25 May 2019 12:15:24 +0000 (21:15 +0900)]
[KERNEL32_APITEST] Add SetComputerNameExW testcase (#1578)

Add testcase of kernel32!SetComputerNameExW function. ROSTESTS-227

2 years ago[WIN32SS][NTGDI] Don't use FLOAT for orientation (#1574)
Katayama Hirofumi MZ [Thu, 23 May 2019 23:24:21 +0000 (08:24 +0900)]
[WIN32SS][NTGDI] Don't use FLOAT for orientation (#1574)

Addendum to 0137096. Use 16.16 fixed-point values instead of FLOAT. CORE-15838

2 years ago[SETUP] Fix controls position in 1st stage GUI setup for Russian translation
Oleg Dubinskiy [Thu, 23 May 2019 18:47:21 +0000 (21:47 +0300)]
[SETUP] Fix controls position in 1st stage GUI setup for Russian translation

2 years ago[WIN32SS][NTGDI] Don't use FLOAT in IntEscapeMatrix (#1572)
Katayama Hirofumi MZ [Thu, 23 May 2019 10:40:54 +0000 (19:40 +0900)]
[WIN32SS][NTGDI] Don't use FLOAT in IntEscapeMatrix (#1572)

Appendum to 1a40284. Use a 16.16 fixed point value instead of FLOAT. CORE-15838

2 years ago[NTOS:KDBG] Use CONTEXT instead of KTRAP_FRAME
Hervé Poussineau [Thu, 23 May 2019 08:59:53 +0000 (10:59 +0200)]
[NTOS:KDBG] Use CONTEXT instead of KTRAP_FRAME

Change KdbpTrapFrameToKdbTrapFrame to prefer CONTEXT (if available) over
KTRAP_FRAME.

2 years ago[NTOS:KD] Remove some _WINDK_ usages
Hervé Poussineau [Mon, 20 May 2019 10:17:22 +0000 (12:17 +0200)]
[NTOS:KD] Remove some _WINDK_ usages

- Always include kd64.h
- Change KdpPrompt() prototype to be compatible between KDBG and _WINDK_
- Rename KdComponentTable to KdpComponentTable to prevent a conflict
- Add some functions stubs and global variables

2 years ago[NTOS:KD] Remove dead code
Hervé Poussineau [Mon, 20 May 2019 11:20:31 +0000 (13:20 +0200)]
[NTOS:KD] Remove dead code

2 years ago[NTOS:KD] Remove CTRL+C pending support left over, likely broken by 5a6adb4f13abeafcc...
Hervé Poussineau [Mon, 20 May 2019 11:35:08 +0000 (13:35 +0200)]
[NTOS:KD] Remove CTRL+C pending support left over, likely broken by 5a6adb4f13abeafcc842e880384a16b05b797ffb

2 years ago[NTOS:KD] Remove /BREAK support left over, likely broken by 819a0ed90a7c1a5dedff08aa3...
Hervé Poussineau [Fri, 17 May 2019 12:18:52 +0000 (14:18 +0200)]
[NTOS:KD] Remove /BREAK support left over, likely broken by 819a0ed90a7c1a5dedff08aa3b3c5501dc58c632

2 years ago[WIN32SS][NTUSER] Fix msvc-x64 build
Katayama Hirofumi MZ [Wed, 22 May 2019 23:32:41 +0000 (08:32 +0900)]
[WIN32SS][NTUSER] Fix msvc-x64 build

2 years ago[FREETYPE] Fix regression CORE-16041 Font/Text Rotation Angles Too Small
Joachim Henze [Wed, 22 May 2019 21:14:42 +0000 (23:14 +0200)]
[FREETYPE] Fix regression CORE-16041 Font/Text Rotation Angles Too Small

Thanks to the patches author Doug Lyons
and the reviewers hbelusca and Katayama Hirofumi MZ.

The regression was introduced by
0.4.13-dev-24-g
61475b9fede67b4eb2236c4ff9a495052c66cda9

2 years ago[NtUser] Fix setting screen size.
jimtabor [Tue, 21 May 2019 21:24:52 +0000 (16:24 -0500)]
[NtUser] Fix setting screen size.

Back set change size to the server information metrics.

Fixes CORE-15477. Still more work is required.

Patch based on reactosfanboy original patch.

2 years ago[NTOSKRNL] Use the security descriptor for all the symlinks
Pierre Schweitzer [Tue, 21 May 2019 17:27:32 +0000 (19:27 +0200)]
[NTOSKRNL] Use the security descriptor for all the symlinks

2 years ago[NTOSKRNL] Simplify ObpCreateGlobalDosDevicesSD by using a SD on the stack
Pierre Schweitzer [Tue, 21 May 2019 06:50:55 +0000 (08:50 +0200)]
[NTOSKRNL] Simplify ObpCreateGlobalDosDevicesSD by using a SD on the stack
Rename it to ObpGetDosDevicesProtection to reflect the two previous changes:
its purpose is to return a DACL matching protection mode

2 years ago[NTOSKRNL] Use relaxed ACLs in ObpCreateGlobalDosDevicesSD when protection mode is...
Pierre Schweitzer [Tue, 21 May 2019 06:37:36 +0000 (08:37 +0200)]
[NTOSKRNL] Use relaxed ACLs in ObpCreateGlobalDosDevicesSD when protection mode is not set

2 years ago[NTOSKRNL] Save ProtectionMode value on boot
Pierre Schweitzer [Tue, 21 May 2019 06:34:16 +0000 (08:34 +0200)]
[NTOSKRNL] Save ProtectionMode value on boot

2 years ago[NET] Start parsing the /times option of the USER command.
Eric Kohl [Mon, 20 May 2019 20:35:11 +0000 (22:35 +0200)]
[NET] Start parsing the /times option of the USER command.

Only '/times:' and '/times:all' are accepted yet.

2 years ago[HIVESYS] Add missing UpperFilters for mouse and keyboard classes
Victor Perevertkin [Sun, 19 May 2019 22:28:33 +0000 (01:28 +0300)]
[HIVESYS] Add missing UpperFilters for mouse and keyboard classes

2 years ago[CONSOLE][CONCFG][CONSRV] Provide support for specified additional TrueType fonts...
Hermès Bélusca-Maïto [Sun, 19 May 2019 20:55:14 +0000 (22:55 +0200)]
[CONSOLE][CONCFG][CONSRV] Provide support for specified additional TrueType fonts + bugfixes.
CORE-12451 CORE-13182 CORE-13196

- CONSOLE: Initialize the additional TrueType fonts cache.
  * Fix the font preview when a TrueType font has been selected.
  * Refresh the available fonts and the font preview when the selected
    code page is changed (Work In Progress), or when the OS pool of
    font resources has changed (WM_FONTCHANGE message).

- CONCFG: Implement support for the additional TrueType fonts cache:
  the contents of the cache is enumerated under the registry key
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont

  * Add helper functions and macros.
  * In CreateConsoleFontEx(), set the mandatory font pitch&family flags
    and remove those that we do not support.
  * In IsValidConsoleFont2(), update the validity checks and the
    documentation links.

- CONSRV: Load/refresh the additional TrueType fonts cache when needed.

2 years ago[TRANSLATIONS] Update/Add Portuguese translations. (#1564) 1564/head
Jose Carlos Jesus [Sat, 11 May 2019 20:23:06 +0000 (21:23 +0100)]
[TRANSLATIONS] Update/Add Portuguese translations. (#1564)

Translations for: deskadp, deskmon, reactos/setup, usetup, syssetup.

Co-Authored-By: Bișoc George <fraizeraust99@gmail.com>
2 years ago[MMSYS] Reset the speaker volume to its initial value when the user clicks the "Cance...
Eric Kohl [Sun, 19 May 2019 14:26:22 +0000 (16:26 +0200)]
[MMSYS] Reset the speaker volume to its initial value when the user clicks the "Cancel" button

CORE-13815

2 years ago[GDI32_APITEST] Strengthen TextTransform more (#1568)
Katayama Hirofumi MZ [Sun, 19 May 2019 10:11:12 +0000 (19:11 +0900)]
[GDI32_APITEST] Strengthen TextTransform more (#1568)

Appendant to #1567. Add more tests for gdi32_apitest!TextTransform. CORE-15554

2 years ago[GDI32_APITEST] Fix MSVC build
Katayama Hirofumi MZ [Sun, 19 May 2019 06:08:38 +0000 (15:08 +0900)]
[GDI32_APITEST] Fix MSVC build

2 years ago[GDI32_APITEST] Strengthen TextTransform testcase (#1567)
Katayama Hirofumi MZ [Sun, 19 May 2019 05:13:56 +0000 (14:13 +0900)]
[GDI32_APITEST] Strengthen TextTransform testcase (#1567)

CORE-15554

2 years ago[NET] Display the 'no logon hours' case in the USER command.
Eric Kohl [Sat, 18 May 2019 19:21:39 +0000 (21:21 +0200)]
[NET] Display the 'no logon hours' case in the USER command.

2 years ago[NET] Implement proper output of logon hour ranges in the USER command.
Eric Kohl [Sat, 18 May 2019 12:46:04 +0000 (14:46 +0200)]
[NET] Implement proper output of logon hour ranges in the USER command.

2 years ago[BASESRV] Handle failures instead of asserting
Pierre Schweitzer [Sat, 18 May 2019 11:37:35 +0000 (13:37 +0200)]
[BASESRV] Handle failures instead of asserting

2 years ago[NET] Print raw logon hour ranges in the USER command.
Eric Kohl [Sat, 18 May 2019 09:26:02 +0000 (11:26 +0200)]
[NET] Print raw logon hour ranges in the USER command.

2 years ago[BASESRV] Take ObjectSecurityMode and ProtectionMode into account when creating DACLs
Pierre Schweitzer [Sat, 18 May 2019 09:05:30 +0000 (11:05 +0200)]
[BASESRV] Take ObjectSecurityMode and ProtectionMode into account when creating DACLs

2 years ago[NTOSKRNL] Implement NtQuerySystemInformation(SystemObjectSecurityMode)
Pierre Schweitzer [Sat, 18 May 2019 08:36:29 +0000 (10:36 +0200)]
[NTOSKRNL] Implement NtQuerySystemInformation(SystemObjectSecurityMode)

2 years ago[NTOSKRNL] Save ObjectSecurityMode value on boot
Pierre Schweitzer [Sat, 18 May 2019 08:28:32 +0000 (10:28 +0200)]
[NTOSKRNL] Save ObjectSecurityMode value on boot

2 years ago[NTOS/MM] Recognize AMD64 image in PeFmtCreateSection failure case 1544/head
Mark Jansen [Tue, 30 Apr 2019 17:03:17 +0000 (19:03 +0200)]
[NTOS/MM] Recognize AMD64 image in PeFmtCreateSection failure case

2 years ago[BASESRV] Strengthen default permissions for DOS devices
Pierre Schweitzer [Wed, 15 May 2019 06:32:55 +0000 (08:32 +0200)]
[BASESRV] Strengthen default permissions for DOS devices

This is linked to previous work done on DOS devices creation
in basesrv. If this DWORD is not set (or 0), DOS devices will
be created with an ACL that make the symlink readable by any
and modifiable by any.
With protection mode set, the symlink will be still readable by
any but not modifiable by anyone but the owner.

This should also affect some objects managed by session manager.

By default, on W2K3, that protection mode is set.

2 years ago[MAGNIFY] Initialize the common controls as the program has a manifest 1562/head
Bișoc George [Sun, 12 May 2019 14:18:28 +0000 (16:18 +0200)]
[MAGNIFY] Initialize the common controls as the program has a manifest

2 years ago[FIND] Improvements / bug-fixes. (#1553) 1553/head
Hermès Bélusca-Maïto [Sat, 11 May 2019 23:05:53 +0000 (01:05 +0200)]
[FIND] Improvements / bug-fixes. (#1553)

- Only include the strictly necessary headers.
- Get rid of the dependency on shell and user DLLs.
- fgetws() gets the string buffer size in number of characters.
- We can use the CRT functions for lengths of the arguments etc.

- The cFileName member of the WIN32_FIND_DATAW structure does not
  contain the full PATH to the enumerated file, but only its name.
  In order to use _wfopen(), build a full file path out of the
  directory part of the file specification and the full file name.

- Simplify a ConPrintf() call to make it "atomic".
- Fix the "confusion" lLineCount vs. lLineNumber vocable in the code.
- Do not emit an extra newline after having displayed the results for
  a given file.
- Uppercase the switches for performing the comparisons.
- Send the errors to the StdErr stream.
- Remove trailing whitespace.

2 years ago[FIND] Rewrite of the find utility. (#1553)
Paweł Cholewa [Sat, 4 May 2019 22:39:14 +0000 (00:39 +0200)]
[FIND] Rewrite of the find utility. (#1553)

This commit contains a complete rewrite of find console utility.
The goal of it was to make the source code easier to maintain
and to add a missing feature (/offline switch).

Additional changes:
 * now the program operates on Unicode strings;
 * added conutils and shlwapi as program's libraries;
 * added IDS_INVALID_SWITCH string into resources;
 * modified IDS_USAGE string to include /offline switch
   description.

https://ss64.com/nt/find.html was used for reference.

2 years ago[HIDCLASS] Implement IRP_MJ_WRITE
Hervé Poussineau [Tue, 14 May 2019 12:18:21 +0000 (14:18 +0200)]
[HIDCLASS] Implement IRP_MJ_WRITE

2 years ago[NtUser] Fix Paint Messages
jimtabor [Mon, 13 May 2019 16:31:58 +0000 (11:31 -0500)]
[NtUser] Fix Paint Messages

This is a HACK for forcing painting of non client areas. Paint code
seems very restricted.

See CORE-7166 & CORE-15934.

2 years ago[APPVEYOR] Disable the clang-cl
Pierre Schweitzer [Mon, 13 May 2019 06:33:00 +0000 (08:33 +0200)]
[APPVEYOR] Disable the clang-cl

The compiler hits an assert while building a file
The two "officially" supported compilers are working though

This will bring back green status for our CI on GitHub

2 years ago[POWERCFG] Show the hibernate page only if the S4 power state is available
Eric Kohl [Sun, 12 May 2019 21:52:08 +0000 (23:52 +0200)]
[POWERCFG] Show the hibernate page only if the S4 power state is available

2 years ago[POWERCFG] Add a separate power schemes dialog for ac-only systems
Eric Kohl [Sun, 12 May 2019 21:48:36 +0000 (23:48 +0200)]
[POWERCFG] Add a separate power schemes dialog for ac-only systems

The layout issues will be fixed by a future patch.

2 years ago[EXPLORER] Add Portuguese (Portugal) pt-PT.rc translation. CORE-15967 (#1558)
Jose Carlos Jesus [Thu, 25 Apr 2019 18:31:58 +0000 (19:31 +0100)]
[EXPLORER] Add Portuguese (Portugal) pt-PT.rc translation. CORE-15967 (#1558)

2 years ago[Gdi32] Batch Type Select Mode for Testing 1558/head
jimtabor [Sat, 11 May 2019 16:22:06 +0000 (11:22 -0500)]
[Gdi32] Batch Type Select Mode for Testing

Do not allow setting hdc if no batch type is found.
See CORE-15988.

2 years ago[BTRFS] Upgrade to 1.2.1
Pierre Schweitzer [Sat, 11 May 2019 09:53:13 +0000 (11:53 +0200)]
[BTRFS] Upgrade to 1.2.1

CORE-16004

2 years ago[UBTRFS] Upgrade to 1.2.1
Pierre Schweitzer [Sat, 11 May 2019 09:24:42 +0000 (11:24 +0200)]
[UBTRFS] Upgrade to 1.2.1

CORE-16004

2 years ago[BTRFS] Upgrade to 1.2.1
Pierre Schweitzer [Sat, 11 May 2019 09:20:02 +0000 (11:20 +0200)]
[BTRFS] Upgrade to 1.2.1

CORE-16004

2 years ago[HIDPARSER] Implement HidP_GetValueCaps
Hervé Poussineau [Fri, 10 May 2019 09:28:28 +0000 (11:28 +0200)]
[HIDPARSER] Implement HidP_GetValueCaps

2 years ago[MOUHID] Correctly detect tablet devices
Hervé Poussineau [Fri, 10 May 2019 06:39:10 +0000 (08:39 +0200)]
[MOUHID] Correctly detect tablet devices

Some mice give a logical min/logical max which is the maximum move
that they can provide. Those were wrongly detected as absolute mice,
and mouse pointer was mostly stuck at the upper left corner of the
screen.

2 years ago[POWERCFG] Fix-up the lid, power button and sleep button settings according to the...
Eric Kohl [Thu, 9 May 2019 21:56:37 +0000 (23:56 +0200)]
[POWERCFG] Fix-up the lid, power button and sleep button settings according to the power capabilities.

2 years ago[Win32SS] Plug in Last Batch
jimtabor [Thu, 9 May 2019 17:35:21 +0000 (12:35 -0500)]
[Win32SS] Plug in Last Batch

Plugging in last batch after 12 years.

2 years ago[NtGDI] Fix ExtSelectClipRgn Tests
jimtabor [Thu, 9 May 2019 17:33:21 +0000 (12:33 -0500)]
[NtGDI] Fix ExtSelectClipRgn Tests

Fix results from tests, add (last one) gdi batch support for
ExtSelectClipRgn. Left commented out test code in tree this time.
Pass Katayama Hirofumi MZ SelectClipRgn tests. After commit will plug in
the last batch. After 12 years.

See CORE-13817 and CORE-15906.

2 years ago[BASESRV] Misc fixes: use BaseSrvHeap and silent a DPRINT
Pierre Schweitzer [Thu, 9 May 2019 06:56:29 +0000 (08:56 +0200)]
[BASESRV] Misc fixes: use BaseSrvHeap and silent a DPRINT

2 years ago[POWERCFG] Do not re-initialize all paged directly when the hibernate file setting...
Eric Kohl [Wed, 8 May 2019 20:56:55 +0000 (22:56 +0200)]
[POWERCFG] Do not re-initialize all paged directly when the hibernate file setting changes. Re-initialize the pages on PSN_SETACTIVE instead.

2 years ago[BASESRV] Make Buffer MAX_PATH big again
Pierre Schweitzer [Wed, 8 May 2019 18:39:57 +0000 (20:39 +0200)]
[BASESRV] Make Buffer MAX_PATH big again

2 years ago[BASESVR] Take SessionId into account while creating BNO directory
Pierre Schweitzer [Wed, 8 May 2019 18:35:31 +0000 (20:35 +0200)]
[BASESVR] Take SessionId into account while creating BNO directory

2 years ago[BASESRV] Fix the BNO string buffer usage
Pierre Schweitzer [Wed, 8 May 2019 18:06:49 +0000 (20:06 +0200)]
[BASESRV] Fix the BNO string buffer usage

This avoids reinitializing it before use.

2 years ago[Win32nt|ApiTests] Add ExtSelectClipRgn test
jimtabor [Wed, 8 May 2019 17:31:17 +0000 (12:31 -0500)]
[Win32nt|ApiTests] Add ExtSelectClipRgn test

For CORE-13817 and CORE-15906

2 years ago[BASESRV] Rewrite DOS devices management
Pierre Schweitzer [Wed, 8 May 2019 16:29:52 +0000 (18:29 +0200)]
[BASESRV] Rewrite DOS devices management

This will notably bring support for DOS mapping with LUID devices
(not yet supported in the kernel, though).
This also reduces complexity (and thus memory usage) with the "history"
thing. Multiple targets are stored in the link target as MULTI_SZ string.

This fixes regressions introduced with kernel32 fixes/rewrites.

2 years ago[KERNEL32] Drop unused line breaks
Pierre Schweitzer [Wed, 8 May 2019 16:13:30 +0000 (18:13 +0200)]
[KERNEL32] Drop unused line breaks

2 years ago[BASESRV] Enable the ProtectionMode query code
Pierre Schweitzer [Tue, 7 May 2019 20:48:41 +0000 (22:48 +0200)]
[BASESRV] Enable the ProtectionMode query code
And make it global

2 years ago[BASESRV] Make SessionId global
Pierre Schweitzer [Tue, 7 May 2019 20:41:30 +0000 (22:41 +0200)]
[BASESRV] Make SessionId global

2 years ago[NTOS:CM] Do not call ZwQueryObject with a zero-size buffer. CORE-15882
Thomas Faber [Tue, 7 May 2019 11:51:06 +0000 (13:51 +0200)]
[NTOS:CM] Do not call ZwQueryObject with a zero-size buffer. CORE-15882

Actually fixes ntdll_apitest:NtLoadUnloadKey.

2 years ago[ROSAUTOTEST] Fix and improve some log handling (#1531)
Serge Gautherie [Tue, 7 May 2019 06:39:52 +0000 (08:39 +0200)]
[ROSAUTOTEST] Fix and improve some log handling (#1531)

* wmain(): Use endl instead of '\n', for 'System uptime'
* wmain(): Output "[ROSAUTOTEST] " in two cases: 'System uptime' and all CSimpleException.

2 years ago[POWERCFG] Implement the power scheme 'Save As' feature
Eric Kohl [Mon, 6 May 2019 21:55:42 +0000 (23:55 +0200)]
[POWERCFG] Implement the power scheme 'Save As' feature

CORE-12565

2 years ago[POWERCFG] Do not call other pages init routines when the hibernate setting changes...
Eric Kohl [Mon, 6 May 2019 21:38:17 +0000 (23:38 +0200)]
[POWERCFG] Do not call other pages init routines when the hibernate setting changes. This will be fixed later.

2 years ago[DDK][PSDK] Added the rest of the defines for netkvm
Benjamin Aerni [Mon, 6 May 2019 05:34:58 +0000 (22:34 -0700)]
[DDK][PSDK] Added the rest of the defines for netkvm

2 years ago[DDK][PSDK] Add some missing NDIS definitions/types. Caught by Benjamin Aerni.
Hermès Bélusca-Maïto [Sun, 5 May 2019 21:18:45 +0000 (23:18 +0200)]
[DDK][PSDK] Add some missing NDIS definitions/types. Caught by Benjamin Aerni.

2 years ago[POWERCFG] Fix power scheme deletion
Eric Kohl [Sun, 5 May 2019 20:48:53 +0000 (22:48 +0200)]
[POWERCFG] Fix power scheme deletion

CORE-12566, CORE-12567

2 years ago[POWERCFG] Improve the error handling in AddPowerScheme() and keep track of the curre...
Eric Kohl [Sun, 5 May 2019 20:01:54 +0000 (22:01 +0200)]
[POWERCFG] Improve the error handling in AddPowerScheme() and keep track of the current power scheme.

2 years ago[NOTEPAD] Duplicate notepad.exe in SystemRoot. CORE-16003 (#1555)
Oleg Dubinskiy [Sun, 5 May 2019 17:48:37 +0000 (20:48 +0300)]
[NOTEPAD] Duplicate notepad.exe in SystemRoot. CORE-16003 (#1555)

This is also done on Windows for backwards compatibility with Windows 3.x/9x.
But, it's also used (i.e. "required") by some installers, like Doom 3 Demo installer and Battlefield 1942 Single Player Demo installer, for successful opening of their Readme file at the end of their installation!

2 years ago[KERNEL32] Misc. fixes to DefineDosDeviceW
Pierre Schweitzer [Sun, 5 May 2019 16:31:43 +0000 (18:31 +0200)]
[KERNEL32] Misc. fixes to DefineDosDeviceW

- Add support for LUIDDeviceMapsEnabled;
- Broadcast proper message in case of device removal;
- Use less memory for strings management;
- Make code a bit cleaner.

2 years ago[NTOS:CM] Check for correct status from ZwQueryObject. CORE-15882
Thomas Faber [Sun, 5 May 2019 15:56:10 +0000 (17:56 +0200)]
[NTOS:CM] Check for correct status from ZwQueryObject. CORE-15882

Fixes regression in ntdll_apitest:NtLoadUnloadKey from d570482bc72.

2 years ago[POWERCFG] Really fix the power schemes exceptions!
Eric Kohl [Sun, 5 May 2019 15:00:57 +0000 (17:00 +0200)]
[POWERCFG] Really fix the power schemes exceptions!

2 years ago[KERNEL32] Rewrite QueryDosDeviceW to handle global and local MS-DOS namespaces
Pierre Schweitzer [Sun, 5 May 2019 12:18:09 +0000 (14:18 +0200)]
[KERNEL32] Rewrite QueryDosDeviceW to handle global and local MS-DOS namespaces

It also comes with a small performance boost: instead of performing object
queries one after another, we query them all at once.

2 years ago[NTOS:PNP] Reduce the size of the pool buffer in IopGetParentIdPrefix. CORE-15882 1507/head
Thomas Faber [Thu, 18 Apr 2019 05:41:50 +0000 (07:41 +0200)]
[NTOS:PNP] Reduce the size of the pool buffer in IopGetParentIdPrefix. CORE-15882

2 years ago[NTOS:CM] Reduce the size of some unnecessarily large stack buffers. CORE-15882
Thomas Faber [Wed, 17 Apr 2019 08:31:34 +0000 (10:31 +0200)]
[NTOS:CM] Reduce the size of some unnecessarily large stack buffers. CORE-15882

2 years ago[NTOS:CM] Simplify CmpGetRegistryPath to avoid unnecessary stack buffers. CORE-15882
Thomas Faber [Wed, 17 Apr 2019 08:25:52 +0000 (10:25 +0200)]
[NTOS:CM] Simplify CmpGetRegistryPath to avoid unnecessary stack buffers. CORE-15882

2 years ago[NTOS:CM] Avoid a fixed-length stack buffer in CmpCmdHiveOpen. CORE-15882
Thomas Faber [Wed, 17 Apr 2019 07:37:37 +0000 (09:37 +0200)]
[NTOS:CM] Avoid a fixed-length stack buffer in CmpCmdHiveOpen. CORE-15882

2 years ago[NTOS:CM] Avoid a fixed-length stack buffer in CmpAddToHiveFileList. CORE-15882
Thomas Faber [Mon, 15 Apr 2019 10:10:23 +0000 (12:10 +0200)]
[NTOS:CM] Avoid a fixed-length stack buffer in CmpAddToHiveFileList. CORE-15882

2 years ago[NTOS] Use correct buffer size when calling MiResolveImageReferences. CORE-15882
Thomas Faber [Mon, 15 Apr 2019 06:25:23 +0000 (08:25 +0200)]
[NTOS] Use correct buffer size when calling MiResolveImageReferences. CORE-15882

2 years ago[NTOS:PNP] Avoid a fixed-length stack buffer in IopActionConfigureChildServices....
Thomas Faber [Sun, 24 Mar 2019 14:04:37 +0000 (15:04 +0100)]
[NTOS:PNP] Avoid a fixed-length stack buffer in IopActionConfigureChildServices. CORE-15882

2 years ago[NTOS:IO] Avoid a fixed-length buffer in IopGetDriverObject. CORE-15882
Thomas Faber [Sun, 24 Mar 2019 13:47:59 +0000 (14:47 +0100)]
[NTOS:IO] Avoid a fixed-length buffer in IopGetDriverObject. CORE-15882

2 years ago[NTOS:KDBG] Avoid use of MAX_PATH. CORE-15882
Thomas Faber [Sun, 24 Mar 2019 09:44:46 +0000 (10:44 +0100)]
[NTOS:KDBG] Avoid use of MAX_PATH. CORE-15882

2 years ago[KERNEL32] Reduce QueryDosDeviceA memory footprint
Pierre Schweitzer [Sun, 5 May 2019 08:12:59 +0000 (10:12 +0200)]
[KERNEL32] Reduce QueryDosDeviceA memory footprint

by using TEB static unicode string (which is already
preallocated).
Also, properly handle RtlUnicodeStringToAnsiString failures.
Finally, make sure output buffer is properly 0 terminated.

2 years ago[KERNEL32] Reduce DefineDosDeviceA memory footprint
Pierre Schweitzer [Sun, 5 May 2019 07:25:34 +0000 (09:25 +0200)]
[KERNEL32] Reduce DefineDosDeviceA memory footprint

by using TEB static unicode string (which is already
preallocated).

2 years ago[CONSOLE.CPL] Fix the console screen preview when selecting TrueType fonts.
Hermès Bélusca-Maïto [Sat, 4 May 2019 23:10:39 +0000 (01:10 +0200)]
[CONSOLE.CPL] Fix the console screen preview when selecting TrueType fonts.
CORE-13182 CORE-13196

- Use the correct character height & width.
- Additions: use StringCch*() when initializing the dialog title.

[CONSRV:CONCFG] Minor fixes.

- When retrieving font characteristics in ConCfgReadUserSettings(),
  check for NULL/zero values that indicate that we should use default
  ones instead.
- Rename 'dwNumSubKeys' into 'dwNumValues'.

2 years ago[MC] Add message tranlations. Supplement to 3acec58f.
Eric Kohl [Sat, 4 May 2019 21:13:28 +0000 (23:13 +0200)]
[MC] Add message tranlations. Supplement to 3acec58f.

2 years ago[NET] Replace remaining strings of the NET ACCOUNTS command by messages
Eric Kohl [Sat, 4 May 2019 19:08:27 +0000 (21:08 +0200)]
[NET] Replace remaining strings of the NET ACCOUNTS command by messages

2 years ago[ROSAUTOTEST] Don't disallow buffering for journal file
Pierre Schweitzer [Fri, 3 May 2019 10:13:51 +0000 (12:13 +0200)]
[ROSAUTOTEST] Don't disallow buffering for journal file

This fixes back journal in ReactOS "at low costs". Indeed,
because write are improperly aligned right now, journaling
just fails.
With that patch, Cc will take care of aligning writes and
journal will be written again. Because flush operations
happen at each and every write to the journal, we expect
changes to land on disk quickly (not as quickly as if
they were directly written). But that's a good trade off
between over engineering and fixing a broken feature.

CORE-15973

2 years ago[AUTOCHK] Don't check any volume on boot
Pierre Schweitzer [Sat, 4 May 2019 08:57:33 +0000 (10:57 +0200)]
[AUTOCHK] Don't check any volume on boot

This will avoid triggering a FAT repair on
unclean FAT volumes.

If dosfstools.fsck works fine in Linux, its
usage on ReactOS triggers worse corruption
than unclean shutdown.

Given I've no time for debugging this, I
kill it off.

CORE-14638

2 years ago[WIN32SS][NTGDI] Correctly get/update ptlCurrent about TA_UPDATECP
Katayama Hirofumi MZ [Sat, 4 May 2019 01:07:24 +0000 (10:07 +0900)]
[WIN32SS][NTGDI] Correctly get/update ptlCurrent about TA_UPDATECP

2 years ago[WIN32SS][NTGDI] Wrap IntLPtoDP and IntDPtoLP macros by do { .... } while (0)
Katayama Hirofumi MZ [Sat, 4 May 2019 00:56:09 +0000 (09:56 +0900)]
[WIN32SS][NTGDI] Wrap IntLPtoDP and IntDPtoLP macros by do { .... } while (0)

2 years ago[APPSHIM_APITEST] Fix 2k3 test failures 1550/head
Mark Jansen [Wed, 1 May 2019 20:48:08 +0000 (22:48 +0200)]
[APPSHIM_APITEST] Fix 2k3 test failures

2 years ago[HIDParser] Fix MSVC build
jimtabor [Thu, 2 May 2019 19:33:07 +0000 (14:33 -0500)]
[HIDParser] Fix MSVC build

Attempt to fix build for MSVC.
This effected local build GCC system with newer Ninja version. Not sure
if this has an effect.

2 years ago[POWERPROF] ValidatePowerPolicies: Do not fail because of legal power states which...
Eric Kohl [Thu, 2 May 2019 18:21:32 +0000 (20:21 +0200)]
[POWERPROF] ValidatePowerPolicies: Do not fail because of legal power states which were set by FixSystemPowerState.

2 years ago[HID] Use hidparser static library for HidP_* functions
Hervé Poussineau [Sat, 27 Apr 2019 12:17:10 +0000 (14:17 +0200)]
[HID] Use hidparser static library for HidP_* functions

hid.dll and hidparse.sys must understand the same HID preparsed data,
so use the same code in hid.dll and in hidparse.sys

At the same time, this permis implementation of some HidP_* functions.

2 years ago[HIDPARSE/HIDPARSER] Move HidP_* functions from hidparse.sys to hidparser library
Hervé Poussineau [Sat, 27 Apr 2019 09:19:46 +0000 (11:19 +0200)]
[HIDPARSE/HIDPARSER] Move HidP_* functions from hidparse.sys to hidparser library

Interface between both is not anymore the HidParser_* functions, but
the HidP_* functions and the AllocFunction/FreeFunction/DebugFunctions/
ZeroFunction/CopyFunction.