reactos.git
11 months ago[BROWSEUI_APITEsT] Make 2 tests for IAutoComplete pass on Test WHS rostests/Tests-tests-WHS
Timo Kreuzer [Sat, 4 Feb 2023 12:10:20 +0000 (14:10 +0200)]
[BROWSEUI_APITEsT] Make 2 tests for IAutoComplete pass on Test WHS

11 months ago[SHELL32_APITEST] Fix tests for OpenAs_RunDLL to pass on Windows 2003
Timo Kreuzer [Thu, 2 Feb 2023 11:57:16 +0000 (13:57 +0200)]
[SHELL32_APITEST] Fix tests for OpenAs_RunDLL to pass on Windows 2003

11 months ago[WIN32KNT_APITEST] Fix test for NtUserSystemParametersInfo
Timo Kreuzer [Wed, 1 Feb 2023 21:33:32 +0000 (23:33 +0200)]
[WIN32KNT_APITEST] Fix test for NtUserSystemParametersInfo

11 months ago[FREELDR][SDK] Build UEFI bootloader for ARM32 (#5196)
Justin Miller [Wed, 3 May 2023 18:56:06 +0000 (11:56 -0700)]
[FREELDR][SDK] Build UEFI bootloader for ARM32 (#5196)

CORE-17604

- Disable some functions for ARM32;
- Remove some link options not used on ARM;
- Add get _controlfp() to LIBCNTPR to link properly on ARM;
- Unify Freeldr UI Drawing on ARM;
- Add qemu UART debugging for ARM32/ARM64.

11 months ago[KBSWITCH] Rely on GetKeyboardLayoutList for getting list (#5263)
Katayama Hirofumi MZ [Tue, 2 May 2023 22:45:35 +0000 (07:45 +0900)]
[KBSWITCH] Rely on GetKeyboardLayoutList for getting list (#5263)

- Use GetKeyboardLayoutList to get the keyboard list instead of using Preload registry key.
- Get the special IDs from registry to handle special HKLs in newly-added LoadSpecialIds function.
- Add GetKLIDFromHKL, GetHKLFromLayoutNum, UpdateLayoutList, and GetKLIDFromLayoutNum helper functions.
CORE-13145, CORE-10667, CORE-18924

11 months ago[EXPLORER][RUNDLL32] Restore minimized non-task windows (#5228)
Katayama Hirofumi MZ [Tue, 2 May 2023 22:39:05 +0000 (07:39 +0900)]
[EXPLORER][RUNDLL32] Restore minimized non-task windows (#5228)

The minimized non-task windows were not usable due to the bugs. In some situations, the system will restore the minimized non-task windows.
- Add IsTaskWnd helper function.
- Add SendPulseToTray function to send a pulse to the tray window.
- At some shell hook handlings, send a pulse to the tray window.
- Add IgnorePulse flag to control the timing of restoring.
- Add a timer to reset IgnorePulse flag.
- If the pulse has come and IgnorePulse flag is false, then restore the minimized non-task windows.
- Modify the rundll32 window procedure.
- Use WINDOWPLACEMENT to restore the minimized windows.
CORE-13895, CORE-18350

11 months ago[REGEDIT] Strip redundant include, minor formatting (#5264)
Joachim Henze [Mon, 1 May 2023 14:50:01 +0000 (16:50 +0200)]
[REGEDIT] Strip redundant include, minor formatting (#5264)

strsafe.h is already included via regedit.h

11 months ago[EXT2FS] Align with upstream and mark ReactOS diff (#5245)
Vincent Franchomme [Sun, 30 Apr 2023 16:26:30 +0000 (18:26 +0200)]
[EXT2FS] Align with upstream and mark ReactOS diff (#5245)

NOTE: There are no new features in this PR, we stay with upstream version 0.69.
CORE-18645

- Add ifdefs to distinguish ReactOS code/fixes from the upstream code;
- If upstream code was overriden, reintroduce it in #else section;
- Re-align .rc version info with upstream (0.69).

11 months ago[SHELL32] Enable Network Connection Rename (#5073)
Jose Carlos Jesus [Sun, 30 Apr 2023 13:40:10 +0000 (14:40 +0100)]
[SHELL32] Enable Network Connection Rename (#5073)

 CORE-18750
- Add Network Connection pidl type 0x99;
- Add binary comparison to pidl memory range.

11 months ago[SETUPAPI] Sync setupapi/queue.c to Wine 4.8 (#5233)
Doug Lyons [Sun, 30 Apr 2023 13:34:26 +0000 (08:34 -0500)]
[SETUPAPI] Sync setupapi/queue.c to Wine 4.8 (#5233)

Sync setupapi/queue.c to Wine 4.8 to improve cab extraction.
This fixes 'fixme:(dll/win32/setupapi/queue.c:418) awful hack: extracting cabinet'

11 months ago[COMDLG32] Enable saving files with different extension (#4903)
Jose Carlos Jesus [Sun, 30 Apr 2023 13:21:20 +0000 (14:21 +0100)]
[COMDLG32] Enable saving files with different extension (#4903)

As on Windows, gives precedence to the user's extension in file names if there is one.
Otherwise appends the selected extension. If not selected, append default extension.

11 months ago[FREELDR] Add disk access handlers for UEFI (#5219)
Justin Miller [Sun, 30 Apr 2023 12:57:10 +0000 (05:57 -0700)]
[FREELDR] Add disk access handlers for UEFI (#5219)

CORE-11953

11 months ago[E1000] Stop logging MAC, is sensitive data of log-contributors (#5254)
Joachim Henze [Sat, 29 Apr 2023 21:02:03 +0000 (23:02 +0200)]
[E1000] Stop logging MAC, is sensitive data of log-contributors (#5254)

11 months ago[KBSWITCH] Delete SHLoadRegUIString hack (#5260)
Katayama Hirofumi MZ [Fri, 28 Apr 2023 22:28:56 +0000 (07:28 +0900)]
[KBSWITCH] Delete SHLoadRegUIString hack (#5260)

Because shlwapi!SHLoadRegUIString function is already implemented, so we don't need the hack any more. CORE-10667

11 months ago[INPUT] Remove fake SHLoadRegUIStringW hack (#5258)
Katayama Hirofumi MZ [Fri, 28 Apr 2023 22:27:54 +0000 (07:27 +0900)]
[INPUT] Remove fake SHLoadRegUIStringW hack (#5258)

Because shlwapi!SHLoadRegUIStringW function is already implemented, so we don't need the hack any more. CORE-11700

11 months ago[NOTEPAD] Delete my name from resource copyright text (#5261)
Katayama Hirofumi MZ [Fri, 28 Apr 2023 12:48:45 +0000 (21:48 +0900)]
[NOTEPAD] Delete my name from resource copyright text (#5261)

The copyright text was too long. CORE-18837

11 months ago[RICHED20] RichEdit: CompForm and CandForm (#5257)
Katayama Hirofumi MZ [Thu, 27 Apr 2023 23:28:57 +0000 (08:28 +0900)]
[RICHED20] RichEdit: CompForm and CandForm (#5257)

Correctly display the composition window and the candidate window.
- At update_caret function, set the position and font of the composition window.
- We don't use internal composition string. Rely on the composition window.
- Improve WM_IME_SETCONTEXT, WM_IME_CONTROL, WM_IME_SELECT, WM_IME_STARTCOMPOSITION, WM_IME_COMPOSITION and WM_IME_ENDCOMPOSITION message handlings.
CORE-11700

11 months ago[ATL] Take _ATL_FREE_THREADED into account 5250/head
Mark Jansen [Wed, 19 Apr 2023 18:27:31 +0000 (20:27 +0200)]
[ATL] Take _ATL_FREE_THREADED into account

When it is not defined, COM should not be initialize multithreaded

11 months ago[ADVPACK_APITEST] Add advpack_apitest:DelNode testcase (#5256)
Katayama Hirofumi MZ [Thu, 27 Apr 2023 11:35:41 +0000 (20:35 +0900)]
[ADVPACK_APITEST] Add advpack_apitest:DelNode testcase (#5256)

Preparation for advpack!DelNodeA/W functions implementation. CORE-13275, ROSTESTS-276

12 months ago[SHELL32] Implement SHQueryRecycleBinW 5251/head
Mark Jansen [Wed, 19 Apr 2023 18:30:24 +0000 (20:30 +0200)]
[SHELL32] Implement SHQueryRecycleBinW

12 months ago[ATL] Add CAtlList::SwapElements 5249/head
Mark Jansen [Wed, 12 Apr 2023 21:25:36 +0000 (23:25 +0200)]
[ATL] Add CAtlList::SwapElements

12 months ago[REGEDIT] Check whether pszSelectKey is NULL on CDN_FILEOK (#5255)
Katayama Hirofumi MZ [Tue, 25 Apr 2023 09:04:36 +0000 (18:04 +0900)]
[REGEDIT] Check whether pszSelectKey is NULL on CDN_FILEOK (#5255)

Avoid crash on exporting root. Add NULL check of pszSelectKey on CDN_FILEOK handling. CORE-18938

12 months ago[NTUSER] Improve MsqPostMessage (#5225)
Thamatip Chitpong [Mon, 24 Apr 2023 18:11:46 +0000 (01:11 +0700)]
[NTUSER] Improve MsqPostMessage (#5225)

- MsqPostMessage: Fill Message structure before InsertTailList. For style consistency.
- MsqPostMessage: Fix the use of MessageQueue variable

12 months ago[ATL_APITEST] Add test for OBJECT_ENTRY_AUTO 5244/head
Mark Jansen [Sat, 15 Apr 2023 20:22:07 +0000 (22:22 +0200)]
[ATL_APITEST] Add test for OBJECT_ENTRY_AUTO

CORE-18936

12 months ago[ATL] Add OBJECT_ENTRY_AUTO for simpler com object registration
Mark Jansen [Sat, 15 Apr 2023 20:21:33 +0000 (22:21 +0200)]
[ATL] Add OBJECT_ENTRY_AUTO for simpler com object registration

Of course gcc needs a nasty hack to include the symbol.
CORE-18936

12 months ago[PSDK] Add some more argument names 5252/head
Mark Jansen [Wed, 19 Apr 2023 18:44:01 +0000 (20:44 +0200)]
[PSDK] Add some more argument names

12 months ago[NTOS:OB] Fix the SAL2 annotation of ObQueryTypeInfo
George Bișoc [Sat, 22 Apr 2023 15:18:57 +0000 (17:18 +0200)]
[NTOS:OB] Fix the SAL2 annotation of ObQueryTypeInfo

The data has to be written into ObjectTypeInfo based on the return length,
not only what is provided by the input buffer length. Fix suggested by
Hermès.

12 months ago[NTOS:OB] Properly calculate the return length in ObQueryTypeInfo 5243/head
George Bișoc [Sat, 15 Apr 2023 10:55:32 +0000 (12:55 +0200)]
[NTOS:OB] Properly calculate the return length in ObQueryTypeInfo

On a x86 system aligning the return length pointer to a 4-byte boundary
works best since pointers in general are 4-byte aligned for x86 systems.

However, what happens on a AMD64 system is that we still align this pointer
to 4-byte, ObjectTypeInfo is a 8-byte pointer and we might write into
the return length past the 4-byte boundary.

If one were to allocate a pool of memory with that length and query all
the object types info and free the said pool of memory thereafter, the
system will crash with BAD_POOL_HEADER because ObQueryTypeInfo overwrote
the return length past the 4-byte boundary length therefore leading up with
corrupted memory blocks in the pool header.

This symptom of BAD_POOL_HEADER happens exactly the same in Windows Server
2003 x64 Edition. Newer versions of Windows like 10 aren't affected.

But, Windows has another bug where they are using MaximumLength for the
calculation of the needed length to be returned to caller. MaximumLength
does not guarantee you that it includes the NULL-terminator in the length
and that potentially leads to a buffer overrun.

Also annotate the ObQueryTypeInfo function with SAL2.

https://processhacker.sourceforge.io/doc/object_8c_source.html (read the
comment in KphObjectTypeInformation).

12 months ago[SCSIPORT] Flush and Free Map Registers (#5190)
Atharva Kulkarni [Fri, 21 Apr 2023 10:44:31 +0000 (16:14 +0530)]
[SCSIPORT] Flush and Free Map Registers (#5190)

- Flush Map registers once the DMA completes
- Free Map registers once the DMA completes
- Add support for SGL allocated from NonPagedPool

Test:
Force Allocations of SGL from Non Paged Pool and ensure OS boots and functions properly

Test Logs:
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
DHCPCSVC: Adapter Name: [{7cd69ac0-dabb-410a-b927-cb3961d174da}] (dynamic)
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
WARNING:  HalCalculateScatterGatherListSize at hal\halx86\generic\dma.c:1168 is UNIMPLEMENTED!
SpiAdapterControlFORCING ALLOCATION FROM SGPOOL
SpiAdapterControlFORCING ALLOCATION FROM SGPOO

12 months ago[NTOS:MM] MmCanFileBeTruncated: Check whether second (optional) parameter was passed...
Adam Słaboń [Wed, 19 Apr 2023 21:12:11 +0000 (23:12 +0200)]
[NTOS:MM] MmCanFileBeTruncated: Check whether second (optional) parameter was passed (#5248)

Second parameter is optional, so mark it as such and check whether it was passed. Fixes a sporadic 0x24 bugcheck caused by access violation when running ReactOS on NTFS volume with WinXP ntfs.sys.

12 months ago[I8042PRT] Add Dell Latitude D410 to the hack list (#5246)
Vincent Franchomme [Tue, 18 Apr 2023 08:03:16 +0000 (10:03 +0200)]
[I8042PRT] Add Dell Latitude D410 to the hack list (#5246)

12 months ago[GITHUB] Add Labeler rule for ATL 5242/head
Mark Jansen [Mon, 17 Apr 2023 11:38:00 +0000 (13:38 +0200)]
[GITHUB] Add Labeler rule for ATL

12 months ago[GITHUB] Add Labeler rule for shell stuff
Mark Jansen [Mon, 17 Apr 2023 11:37:45 +0000 (13:37 +0200)]
[GITHUB] Add Labeler rule for shell stuff

12 months ago[ATL] Add CString::AppendFormat 5236/head
Mark Jansen [Wed, 12 Apr 2023 20:21:41 +0000 (22:21 +0200)]
[ATL] Add CString::AppendFormat

12 months ago[USER32_APITEST] Comment out a test for GetMessageTime that randomly fails on Windows
Timo Kreuzer [Fri, 3 Feb 2023 16:26:49 +0000 (18:26 +0200)]
[USER32_APITEST] Comment out a test for GetMessageTime that randomly fails on Windows

12 months ago[JSCRIPT_WINETEST] Disable a test that fails on Windows 2003
Timo Kreuzer [Fri, 3 Feb 2023 16:18:14 +0000 (18:18 +0200)]
[JSCRIPT_WINETEST] Disable a test that fails on Windows 2003

12 months ago[NTDLL_APITEST] Fix a test for NtMapViewOfSection
Timo Kreuzer [Fri, 3 Feb 2023 13:33:16 +0000 (15:33 +0200)]
[NTDLL_APITEST] Fix a test for NtMapViewOfSection

12 months ago[NTDLL_APITEST] Try to fix test for NtMapViewOfSection
Timo Kreuzer [Thu, 2 Feb 2023 18:34:06 +0000 (20:34 +0200)]
[NTDLL_APITEST] Try to fix test for NtMapViewOfSection

Remove a 0 sized test.dll, which overwrites an already present proper test.dll

12 months ago[WIN32KNT_APITEST] Disable test for NtGdiDdQueryDirectDrawObject
Timo Kreuzer [Thu, 2 Feb 2023 15:37:37 +0000 (17:37 +0200)]
[WIN32KNT_APITEST] Disable test for NtGdiDdQueryDirectDrawObject

12 months ago[STATIC_CRT_APITEST] Add todo to tests that fail on Windows
Timo Kreuzer [Thu, 2 Feb 2023 14:22:48 +0000 (16:22 +0200)]
[STATIC_CRT_APITEST] Add todo to tests that fail on Windows

12 months ago[SHELL32_APITEST] Disable CUserNotification test
Timo Kreuzer [Thu, 2 Feb 2023 11:48:56 +0000 (13:48 +0200)]
[SHELL32_APITEST] Disable CUserNotification test

The test doesn't work on Windows 2003, because the balloon window does not close itself.

12 months ago[KERNEL32_APITEST] Make tests pass on Windows 2003
Timo Kreuzer [Thu, 2 Feb 2023 10:04:54 +0000 (12:04 +0200)]
[KERNEL32_APITEST] Make tests pass on Windows 2003

12 months ago[USER32_APITEST] Remove "ugly ros hack"
Timo Kreuzer [Wed, 1 Feb 2023 22:16:19 +0000 (00:16 +0200)]
[USER32_APITEST] Remove "ugly ros hack"

This hack corrupts memory and causes test failures on Windows.

12 months ago[IPHLPAPI_APITEST] Fix tests so they pass on Windows 2003 and Windows 10
Timo Kreuzer [Wed, 1 Feb 2023 14:34:08 +0000 (16:34 +0200)]
[IPHLPAPI_APITEST] Fix tests so they pass on Windows 2003 and Windows 10

12 months ago[GDIPLUS_WINETEST] Make tests pass on Windows 2003
Timo Kreuzer [Tue, 31 Jan 2023 12:08:46 +0000 (14:08 +0200)]
[GDIPLUS_WINETEST] Make tests pass on Windows 2003

12 months ago[WIN32SS:ENG] Do not free LDEV if unloading a driver failed
Hervé Poussineau [Sun, 16 Apr 2023 16:48:15 +0000 (18:48 +0200)]
[WIN32SS:ENG] Do not free LDEV if unloading a driver failed

Currently, LDEVOBJ_bUnloadImage always returns FALSE due to missing functionality in ntoskrnl.
LDEVOBJ_vFreeLDEV contains an assert that driver is correctly unloaded before freeing it.
Prevent this assert by calling LDEVOBJ_vFreeLDEV only if LDEVOBJ_bUnloadImage succeed.

This can be easily triggered if DrvEnableDriver function (called in LDEVOBJ_bEnableDriver) fails.

12 months ago[MKISOFS] Fix MSVC build on ARM hosts
Adam Słaboń [Sun, 19 Mar 2023 12:58:27 +0000 (13:58 +0100)]
[MKISOFS] Fix MSVC build on ARM hosts

Check also for MSVC target machine macros on ARM

12 months ago[HHCTRL.OCX] Reduce ROS diff
Thamatip Chitpong [Tue, 28 Mar 2023 11:49:34 +0000 (18:49 +0700)]
[HHCTRL.OCX] Reduce ROS diff

12 months ago[PSEH] Change return type of filter function prototype to avoid broken return from...
Timo Kreuzer [Wed, 28 Dec 2022 14:15:28 +0000 (15:15 +0100)]
[PSEH] Change return type of filter function prototype to avoid broken return from inside it.

12 months ago[NTOS/CC] Fix broken usage of _SEH2_FINALLY
Timo Kreuzer [Tue, 27 Dec 2022 15:43:10 +0000 (17:43 +0200)]
[NTOS/CC] Fix broken usage of _SEH2_FINALLY

Finally handlers are - unlike except blocks - not part of the function they are in, but separate functions, which are called during unwind. PSEH implements them on GCC using nested functions. While "return" from a finally handler is allowed with native SEH, it's handled by the compiler through an extra unwinding operation using _local_unwind, WHICH IS NOT SUPPORTED BY PSEH! With PSEH, returning from a finally handler does not return from the function, instead it will only return from the finally handler and the function will continue below the finally handler as if there was no return at all. To fix this, the return is removed and an additional success check is added.
Also use _SEH_VOLATILE to make sure the variable assignment is not optimized away by the compiler and add zero out the result parameters on error.

12 months ago[NTOS/CC] Fix calls to CcRosEnsureVacbResident
Timo Kreuzer [Sun, 22 Jan 2023 08:26:13 +0000 (10:26 +0200)]
[NTOS/CC] Fix calls to CcRosEnsureVacbResident

The function returns BOOLEAN, not NTSTATUS! Also wrap it in SEH, because it can throw an exception on failure.

12 months ago[USER32_WINETEST] Change module type to win32cui to be able to see test results
Timo Kreuzer [Wed, 1 Feb 2023 16:29:38 +0000 (18:29 +0200)]
[USER32_WINETEST] Change module type to win32cui to be able to see test results

12 months ago[CODEOWNERS] Add Giannis and myself as reviewer for shell related stuff 5220/head
Mark Jansen [Mon, 3 Apr 2023 18:12:39 +0000 (20:12 +0200)]
[CODEOWNERS] Add Giannis and myself as reviewer for shell related stuff

12 months ago[NTUSER] co_UserDestroyWindow: Validate window before destroying it (#5054)
Thamatip Chitpong [Wed, 12 Apr 2023 20:20:46 +0000 (03:20 +0700)]
[NTUSER] co_UserDestroyWindow: Validate window before destroying it (#5054)

Prevent the window from being destroyed twice
fixes BSOD 0x1E CORE-18821

12 months ago[MMSYS] Improve sound test button (#4879)
Thamatip Chitpong [Wed, 12 Apr 2023 20:00:37 +0000 (03:00 +0700)]
[MMSYS] Improve sound test button (#4879)

- Make sound test button able to stop the sound (like WinXP's mmsys.cpl)
- Change stop icon
- Add documentation for GetSoundDuration

12 months ago[NTOS:KDBG] Only use the direct KdbPrintf instead of KdbpPrint (pager) inside the...
Hermès Bélusca-Maïto [Mon, 28 Nov 2022 01:48:55 +0000 (02:48 +0100)]
[NTOS:KDBG] Only use the direct KdbPrintf instead of KdbpPrint (pager) inside the exception handler (outside the debugger main loop).

12 months ago[NTOS:KDBG] Use local KdbPrintf function for DPRINT1 instead of DbgPrint...
Hermès Bélusca-Maïto [Wed, 12 Apr 2023 16:38:47 +0000 (18:38 +0200)]
[NTOS:KDBG] Use local KdbPrintf function for DPRINT1 instead of DbgPrint...

... that would otherwise cause a debugger re-entry.

Also use KdbPuts/Printf instead of KdpDprintf that won't be available
once KDBG is moved out of it.

12 months ago[NTOS:KDBG] Introduce local versions of KdpPrintString, KdpDprintf and KdpPromptString...
Hermès Bélusca-Maïto [Wed, 29 Mar 2023 17:38:10 +0000 (19:38 +0200)]
[NTOS:KDBG] Introduce local versions of KdpPrintString, KdpDprintf and KdpPromptString...

... since the original ones are internal to the kernel and won't be
available once KDBG is moved out of it.

Use these functions in the pager/prompt support.

12 months ago[NTOS:KDBG] Correctly balance KeStackAttachProcess with KeUnstackDetachProcess, inste...
Hermès Bélusca-Maïto [Thu, 6 Apr 2023 01:55:20 +0000 (03:55 +0200)]
[NTOS:KDBG] Correctly balance KeStackAttachProcess with KeUnstackDetachProcess, instead of KeDetachProcess.

12 months ago[NTOS] Include kdbg/kdb.h only in the files that really need it.
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 21:38:32 +0000 (23:38 +0200)]
[NTOS] Include kdbg/kdb.h only in the files that really need it.

12 months ago[COMCTL32][USER32] EDIT: Fix caret position for IME
Katayama Hirofumi MZ [Sun, 9 Apr 2023 23:27:50 +0000 (08:27 +0900)]
[COMCTL32][USER32] EDIT: Fix caret position for IME

CORE-11700

12 months ago[NTUSER] IntImmActivateLayout: Set CI_IMMACTIVATE if not pImeWnd (#5231)
Katayama Hirofumi MZ [Sun, 9 Apr 2023 06:19:47 +0000 (15:19 +0900)]
[NTUSER] IntImmActivateLayout: Set CI_IMMACTIVATE if not pImeWnd (#5231)

In IntImmActivateLayout function, if pImeWnd was NULL and pti->spDefaultImc was non-NULL, then set CI_IMMACTIVATE flag. CORE-11700

12 months ago[COMCTL32][USER32] EDIT: CompForm and CandForm (#5226)
Katayama Hirofumi MZ [Sun, 9 Apr 2023 06:19:19 +0000 (15:19 +0900)]
[COMCTL32][USER32] EDIT: CompForm and CandForm (#5226)

The changes of this PR are on EDIT controls.
- Delete composition_len and composition_start members.
- Add EDIT_ImmSetCompositionWindow helper function.
- At EDIT_SetCaretPos, set the position of the composition window.
- We don't use internal composition string. Rely on the composition window.
- Improve WM_IME_STARTCOMPOSITION, WM_IME_COMPOSITION and WM_IME_ENDCOMPOSITION message handling.
CORE-11700

12 months ago[MSPAINT] Fix handle leaks about memory bitmap
Katayama Hirofumi MZ [Sun, 9 Apr 2023 02:15:51 +0000 (11:15 +0900)]
[MSPAINT] Fix handle leaks about memory bitmap

This fixes CORE-18919. CORE-18867

12 months ago[ADVAPI32] Do not fail on creating a registry key if the security attributes have...
Doug Lyons [Sun, 9 Apr 2023 02:04:04 +0000 (21:04 -0500)]
[ADVAPI32] Do not fail on creating a registry key if the security attributes have an invalid length. (#5230)

Provide graceful handling of RegCreateKeyExW when lpSecurityAttributes->nLength is zero.
This reverts commit cc0716b65 (SVN r24491).
JIRA issue: CORE-15471

12 months ago[MSPAINT] Fix Copy and Paste
Katayama Hirofumi MZ [Sun, 9 Apr 2023 00:14:32 +0000 (09:14 +0900)]
[MSPAINT] Fix Copy and Paste

Call GetSelectionContents in SelectionModel::GetBitmap.
CORE-18920, CORE-18867

12 months ago[MSPAINT] Fix SelectionModel::InsertFromHBITMAP bug
Katayama Hirofumi MZ [Sun, 9 Apr 2023 00:01:14 +0000 (09:01 +0900)]
[MSPAINT] Fix SelectionModel::InsertFromHBITMAP bug

CORE-18867, CORE-18920

12 months ago[MSPAINT] Canvas: Don't draw new frame if HIT_NONE
Katayama Hirofumi MZ [Sat, 8 Apr 2023 23:49:18 +0000 (08:49 +0900)]
[MSPAINT] Canvas: Don't draw new frame if HIT_NONE

CORE-18867

12 months ago[MSPAINT] imageSaved = FALSE after image size change
Katayama Hirofumi MZ [Sat, 8 Apr 2023 23:23:44 +0000 (08:23 +0900)]
[MSPAINT] imageSaved = FALSE after image size change

...and redraw canvas after image resizing is canceled.
CORE-18867

12 months ago[RAPPS] Calculate download listview position (#5232)
Katayama Hirofumi MZ [Sat, 8 Apr 2023 20:51:23 +0000 (05:51 +0900)]
[RAPPS] Calculate download listview position (#5232)

Correctly display Download ListView at right position in any languages. CORE-18706

12 months ago[MSPAINT] Make imageArea window-less (#5215)
Katayama Hirofumi MZ [Sat, 8 Apr 2023 13:25:27 +0000 (22:25 +0900)]
[MSPAINT] Make imageArea window-less (#5215)

- Move imageArea code into canvasWindow.
- Delete imgarea.cpp, imgarea.h, and imageArea.
- Add CCanvasWindow::ImageToCanvas and CCanvasWindow::CanvasToImage to convert the coordinates.
- Realize drawing of resizing image area.
CORE-18867

12 months ago[RAPPS] Improve Japanese translation
Katayama Hirofumi MZ [Sat, 8 Apr 2023 08:32:11 +0000 (17:32 +0900)]
[RAPPS] Improve Japanese translation

CORE-18706

12 months ago[RUNDLL32][SHELL32] Rename 'rundll32_window' as 'RunDLL' (#5229)
Katayama Hirofumi MZ [Sat, 8 Apr 2023 06:20:07 +0000 (15:20 +0900)]
[RUNDLL32][SHELL32] Rename 'rundll32_window' as 'RunDLL' (#5229)

Improve compatibility.
- Rename window class "rundll32_window" as "RunDLL".
- Delete some shell32 codes about this window class.
CORE-13895, CORE-18350

12 months ago[KDGDB] Fix GCC build. Addendum to commits b577ac07 and de81021ba.
Hermès Bélusca-Maïto [Wed, 5 Apr 2023 00:47:10 +0000 (02:47 +0200)]
[KDGDB] Fix GCC build. Addendum to commits b577ac07 and de81021ba.

See also PR #5217.

12 months ago[NTOS] "Bugzilla" --> "Jira"
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 21:41:48 +0000 (23:41 +0200)]
[NTOS] "Bugzilla" --> "Jira"

12 months ago[NTOS:KD] Fix buffer overflow for the signon in KdPortInitializeEx.
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 01:03:42 +0000 (03:03 +0200)]
[NTOS:KD] Fix buffer overflow for the signon in KdPortInitializeEx.

The built string can be:
°°Kernel Debugger: Serial port found: COM1 (Port 0x000003F8) BaudRate 115200°°°°
(with ° representing the \r and \n in the message)
and you can verify that this is more than 80 characters in total.

12 months ago[KDVBOX] Fix port name comparison.
Hermès Bélusca-Maïto [Sun, 2 Apr 2023 00:25:28 +0000 (02:25 +0200)]
[KDVBOX] Fix port name comparison.

12 months agoGrmbl...
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 23:53:32 +0000 (01:53 +0200)]
Grmbl...

12 months ago[NTOS:IO] ... and fix build by adding missing header.
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 23:45:32 +0000 (01:45 +0200)]
[NTOS:IO] ... and fix build by adding missing header.

12 months ago[NTOS:IO] Avoid magic value in LdrProcessDriverModule.
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 23:39:32 +0000 (01:39 +0200)]
[NTOS:IO] Avoid magic value in LdrProcessDriverModule.

12 months ago[SHIMGVW] Update the display window when selecting the Previous/Next picture. (#5223) 5223/head
Hermès Bélusca-Maïto [Tue, 4 Apr 2023 20:07:55 +0000 (22:07 +0200)]
[SHIMGVW] Update the display window when selecting the Previous/Next picture. (#5223)

Patch by KRosUser.
CORE-18905

12 months ago[SDK] Shorten autogenerated Copyright strings (#5210)
Joachim Henze [Tue, 4 Apr 2023 10:10:59 +0000 (12:10 +0200)]
[SDK] Shorten autogenerated Copyright strings (#5210)

that we do compile into almost every dll and exe.
Reduces unnecessary scrolling in the
Versions tab of file properties dlg, which precedes the Copyright phrase anyway.

MS also uses shorter strings and therefore doesn't require to scroll at all.
See attached screenshots in the PR.

12 months ago[COMCTL32][USER32] EDIT: WM_SETFONT for IME (#5214)
Katayama Hirofumi MZ [Tue, 4 Apr 2023 10:09:21 +0000 (19:09 +0900)]
[COMCTL32][USER32] EDIT: WM_SETFONT for IME (#5214)

- Call ImmSetCompositionFontW in WM_SETFONT handling of EDIT controls if necessary.
- If the specified font is NULL, then use DEFAULT_GUI_FONT.
CORE-11700

12 months ago[MSPAINT] Allow paletteWindow to be bottom-aligned (#5216)
Katayama Hirofumi MZ [Tue, 4 Apr 2023 10:06:06 +0000 (19:06 +0900)]
[MSPAINT] Allow paletteWindow to be bottom-aligned (#5216)

The user will be able to move the palette window to bottom by dragging.
- Add Bar1ID registry setting.
- Move paletteWindow to top or bottom in mainWindow's WM_SIZE handling.
- Track the mouse dragging on paletteWindow.
- If the dragging is beyond the center point, then move paletteWindow.
CORE-18867

12 months ago[FREELDR] Implement the memory managment functions for UEFI (#5174)
Justin Miller [Mon, 3 Apr 2023 15:33:20 +0000 (08:33 -0700)]
[FREELDR] Implement the memory managment functions for UEFI (#5174)

CORE-11954

- EFI binaries have a different subsystem in the PE header;
- ENVIRON: Make sure INTN and UINTN are 64bit for 64bit platforms;
- Handle UEFI Memory maps and translate it for freeldr;
- Add FAILED_TO_EXIT_BOOTSERVICES Freeldr BSoD code.

12 months ago[MSPAINT] Allow ToolBox to be right-aligned (#5213)
Katayama Hirofumi MZ [Mon, 3 Apr 2023 05:34:56 +0000 (14:34 +0900)]
[MSPAINT] Allow ToolBox to be right-aligned (#5213)

The user will be able to move ToolBox in the main window by dragging.
- Add Bar2ID registry setting.
- Add CPaintToolBar class to encapsulate the toolbar code.
- Capture and track the mouse dragging in CToolBox.
- Move the ToolBox if dragging is beyond the center position.
CORE-18867

12 months ago[MSI] Fix empty disc costing (Terragen, ...) (#5201)
Atharva Kulkarni [Sun, 2 Apr 2023 17:19:21 +0000 (22:49 +0530)]
[MSI] Fix empty disc costing (Terragen, ...) (#5201)

JIRA issue: CORE-18749

12 months ago[MSI] Revert to previous working solution for disk usage display in dialog.c (#5194)
Atharva Kulkarni [Sun, 2 Apr 2023 17:16:18 +0000 (22:46 +0530)]
[MSI] Revert to previous working solution for disk usage display in dialog.c (#5194)

There is a bug, which displays empty optical drive as a valid Drive where applications can be installed, which is wrong. This change will skip displaying any drives that are not fixed in the disk usage table in the msi installer UI.

JIRA issue: CORE-18758

Proposed changes

Revert to old solution from Doug Lyons which was working fine.

12 months agoEnable framebuf_new driver (#4775)
hpoussin [Sun, 2 Apr 2023 14:33:15 +0000 (16:33 +0200)]
Enable framebuf_new driver (#4775)

Replace framebuf display driver by framebuf_new display driver
Compile framebuf_new as framebuf.dll, and add it to bootcd/livecd
Remove old framebuf from compilation, to not conflict

12 months ago[NTUSER] Fix BSOD 0x1E nullptr deref CORE-18899 (#5212)
Joachim Henze [Sun, 2 Apr 2023 14:27:42 +0000 (16:27 +0200)]
[NTUSER] Fix BSOD 0x1E nullptr deref CORE-18899 (#5212)

fix authored by JIRA-user "TANGaming". I do suspect that the possibility of that nullptr deref was introduced on the master branch by 0.4.13-dev-962-g 4193b8d. Doug Lyons signalled his "ok" regarding the fix in chat already. CORE-18899

12 months ago[CONSOLE] Harmonize IDC_LBOX_FONTTYPE height to 40 for *.rc (#5211)
Joachim Henze [Sun, 2 Apr 2023 14:25:43 +0000 (16:25 +0200)]
[CONSOLE] Harmonize IDC_LBOX_FONTTYPE height to 40 for *.rc (#5211)

40 is what en-US uses, and most other langs used that meanwhile as well. Some were forgotten to be synced though.
While comparing all the files, use the opportunity to slightly improve some headers also.

12 months ago[SHELL32] Improve French (fr-FR) translation (#5179)
fulup29 [Sat, 1 Apr 2023 22:07:52 +0000 (00:07 +0200)]
[SHELL32] Improve French (fr-FR) translation (#5179)

CORE-18382

Original patch is used to fix and improve french translation and layout.
The original (erroneous) horizontal shift of the second checkbox is kept.
It should be fixed homogeneously in all translations at once later.

12 months ago[NTOSKRNL] Flush file to disk when deleting file mappings (#4302)
Jérôme Gardou [Sat, 1 Apr 2023 14:56:49 +0000 (16:56 +0200)]
[NTOSKRNL] Flush file to disk when deleting file mappings (#4302)

CORE-17627
When closing a file, fastfat zeroes it out from ValidDataLength up to the end of the file.
The ValidDataLength field is updated when the file content is actually written to disk.
There is currently a race between the file-close path and the page out path, leading to potential file corruptions when the zeroing happens after the memory has been flushed to disk.

Fix this by actually flushing the file to disk when unmapping files, with file lock acquired. This way, the FS driver cannot zero out the tail of the file while we're actually flushing it to disk.

12 months ago[REGEDIT] Fix ListView selection and finding (#5150)
Katayama Hirofumi MZ [Sat, 1 Apr 2023 13:21:59 +0000 (22:21 +0900)]
[REGEDIT] Fix ListView selection and finding (#5150)

We will check the data size correctly, instead of 3 NUL byte appending hack. Add bSelectNone parameter to UpdateAddress and RefreshListView functions. If bSelectNone is TRUE, then select nothing of ListView. Fix item selection of ListView. Rename CompareData helper function as MatchData and improve it. Improve the search algorithm. If the item selection of ListView changed, scroll down to the item. Follow up to #5146. CORE-15986, CORE-18230

12 months ago[MSPAINT] Make selection window-less (#5208)
Katayama Hirofumi MZ [Sat, 1 Apr 2023 13:01:04 +0000 (22:01 +0900)]
[MSPAINT] Make selection window-less (#5208)

- Delete selection.cpp and selection.h and selectionWindow.
- Extend ColorKeyedMaskBlt function.
- Implement selection resizing.
CORE-18867

12 months ago[KERNEL32] LCMapString: Fullwidth/halfwidth conversion (#5206)
Katayama Hirofumi MZ [Sat, 1 Apr 2023 02:33:36 +0000 (11:33 +0900)]
[KERNEL32] LCMapString: Fullwidth/halfwidth conversion (#5206)

- Add file dll/win32/kernel32/winnls/string/dakuten.h.
- Add file dll/win32/kernel32/winnls/string/full2half.h.
- Support LCMAP_FULLWIDTH and LCMAP_HALFWIDTH in LCMapString.
CORE-11700

12 months ago[NOTEPAD][OSK] Improve/Add Portuguese (Brazilian pt-BR and Portugal pt-PT) translatio...
valmorflores [Thu, 30 Mar 2023 23:37:45 +0000 (20:37 -0300)]
[NOTEPAD][OSK] Improve/Add Portuguese (Brazilian pt-BR and Portugal pt-PT) translations (#5124)

Co-authored-by: Julen Urizar Compains <julenuri@hotmail.com>
12 months ago[SHELL32_APITESTS] Add ROS.ico test file. Improve shell32:ExtractIconEx tests (#5169)
Doug Lyons [Thu, 30 Mar 2023 11:31:13 +0000 (06:31 -0500)]
[SHELL32_APITESTS] Add ROS.ico test file. Improve shell32:ExtractIconEx tests (#5169)

Improve shell32:ExtractIconEx tests by updating it and adding more test files and 1 new icon file.

JIRA issue: ROSTESTS-381

Add new ROS.ico file which has both a normal icon and a PNG one.
Update testing to test for count of icons in file and separately extract the 0th one.
Add tests for sysicon.ico, explorer.exe and the new ROS.ico files.

12 months ago[NTOS:KD] Fix build, addendum to commit f3dd7133.
Hermès Bélusca-Maïto [Wed, 29 Mar 2023 01:36:24 +0000 (03:36 +0200)]
[NTOS:KD] Fix build, addendum to commit f3dd7133.

This one was more subtle because the prompt (KdIoReadLine) functionality
makes a call-back to KDBG own command history getter function KdbGetHistoryEntry.
It is planned for this to become a registered optional callback pointer.

12 months agoFix build, addendum to commit 35180b3a
Hermès Bélusca-Maïto [Wed, 29 Mar 2023 00:55:06 +0000 (02:55 +0200)]
Fix build, addendum to commit 35180b3a