Commit graph

66295 commits

Author SHA1 Message Date
Dmitry Chapyshev ac58e0fdf6 [SDK]
- KLF_SHIFTLOCK is not equal 65535. Correct value is 0x00010000

svn path=/trunk/; revision=72190
2016-08-10 19:05:54 +00:00
Dmitry Chapyshev 4245233f5f [INPUT]
- Draw 0x2022 unicode symbol instead 0x25CF (marking default input method)
- Fix incorrect logic in CapsLock parameters
- Notice system of change CapsLock mode parameters

svn path=/trunk/; revision=72189
2016-08-10 19:04:11 +00:00
Giannis Adamopoulos 22c0bb2723 [SHELL32]
- Add CRegFolder using the guid item specific functions. So far it is only partly implemented with stuff like enumerating still missing.
- Use CRegFolder in CDesktopFolder, CDrivesFolder and CControlPanelFolder and stop using guid item specific functions.

svn path=/trunk/; revision=72188
2016-08-10 18:56:48 +00:00
Amine Khaldi 5645cda63f [SHIMLIB] Improve header inclusions.
svn path=/trunk/; revision=72187
2016-08-10 13:37:22 +00:00
Pierre Schweitzer e3b0a95319 [NTOSKRNL]
While attempting to read data from disk in CcReadVirtualAddress(), always align our read size by pages.
That means that even on boundaries, we will read a complete page.
This fixes FSD relying on Cc to properly align reads and thus poorly failing in disk.sys because of unaligned reads.
Notably, it helps MS FastFAT loading a bit farther in ReactOS (but it still fails :-().
This also fixes a few kmtests.

CORE-11003
CORE-11819

svn path=/trunk/; revision=72186
2016-08-10 11:52:30 +00:00
Hermès Bélusca-Maïto 57888376d9 [INPUT]
- Fix misspelling "Dublicate" -> "Duplicate".
- Use ZeroMemory instead of memset(..., 0, ...).
- Don't hardcode most of the variable types for sizeof.

svn path=/trunk/; revision=72185
2016-08-10 11:42:21 +00:00
Thomas Faber 079e405958 [TCPIP]
- Use pool tagging

svn path=/trunk/; revision=72184
2016-08-10 11:19:59 +00:00
Thomas Faber 0439f525d3 [IP]
- Only accept an incoming connection on one listening socket, not all. Fixes use after free when multiple connection endpoints are assigned the same PCB.
CORE-11649 #resolve

svn path=/trunk/; revision=72183
2016-08-10 10:28:28 +00:00
Pierre Schweitzer f27ecf0960 [KMTESTS:CC]
New test case which is matching the MS FastFAT CcCopyRead (minus the offset) and shows clearly the issue in our Cc.
It also shows that my hack is utterly broken :-).

CORE-11003
CORE-11819

svn path=/trunk/; revision=72182
2016-08-10 07:39:20 +00:00
James Tabor 831a53f80f [NtUser]
- Fix breakage due to WM_NCPAINT call. Duplicate check for draw caption bar Justin Case.

svn path=/trunk/; revision=72181
2016-08-10 03:02:57 +00:00
James Tabor 824b41c0b2 [NtUser]
- Fix regression from r71846. See CORE-11479 for more details.

svn path=/trunk/; revision=72180
2016-08-10 00:16:57 +00:00
Ged Murphy 6927d67350 [README.WINE]
- Remove reference to fltlib. It was, and will likely only ever be a stubbed dll in Wine

svn path=/trunk/; revision=72179
2016-08-09 22:23:16 +00:00
Ged Murphy 35623f5db9 [FLTLIB]
- Stub out fltlib.dll.
- Add basic implementations for FilterLoad and FilterUnload
- Remove the wine code, this lib talks directly to fltmgr.sys and is therefore a reactos only dll from now on.

svn path=/trunk/; revision=72178
2016-08-09 22:10:05 +00:00
Dmitry Chapyshev d89d2873bc [INPUT]
- Rename input_new to input

svn path=/trunk/; revision=72177
2016-08-09 21:49:06 +00:00
Dmitry Chapyshev ce6a889a7b [INPUT]
- Remove old input.dll

svn path=/trunk/; revision=72176
2016-08-09 21:45:58 +00:00
Dmitry Chapyshev fcb6eaa8cc [KBSWITCH]
- Hackfix detecting keyboard layout switching

* Now when hotkeys switching layouts icon changes

svn path=/trunk/; revision=72175
2016-08-09 21:41:05 +00:00
Ged Murphy 0b589c107d [FLTMC]
- Start to implement fltMC
- It currently supports loading, unloading and listing loaded filter driver.

svn path=/trunk/; revision=72174
2016-08-09 21:33:53 +00:00
Ged Murphy 705846cb25 [FLTLIB_APITEST]
- Create a skeleton test project for fltlib.dll
- Not yet part of the build

svn path=/trunk/; revision=72173
2016-08-09 21:23:40 +00:00
Dmitry Chapyshev e5d5259ab7 [INPUT]
- Small fix :-p

svn path=/trunk/; revision=72172
2016-08-09 21:09:07 +00:00
Dmitry Chapyshev 4e8d5c9c39 [INPUT]
- Implement 'Key Settings' and 'Change Key Settings' dialogs

* Now you can add, delete and change the input method, change the hotkey switching input methods. The system correctly responds to changes. It works fine in Windows 10, but has not yet been tested on ReactOS

svn path=/trunk/; revision=72171
2016-08-09 21:03:55 +00:00
Pierre Schweitzer b7586c0478 [KMTESTS:CC]
It seems we're page-aligned.

CORE-11003

svn path=/trunk/; revision=72170
2016-08-09 20:52:38 +00:00
Pierre Schweitzer dfdbabb521 [KMTESTS:CC]
Modify a bit the read test so that it actually fails in ReactOS. It instructs us that when it comes to file boundaries, our Cc fails to properly align read (whereas it should!).
This is the behavior exposed by the MS FastFAT.

CORE-11003
CORE-11819

svn path=/trunk/; revision=72169
2016-08-09 20:46:00 +00:00
Dmitry Chapyshev e64e194b5d [INPUT]
- Implement editing input methods
- Marking default layout
- Other bugfixes

svn path=/trunk/; revision=72168
2016-08-09 18:26:43 +00:00
Giannis Adamopoulos ecf30d78ed [SHELL32]
- Don't hardcode the path in the shell namespace in any folder appart for CDesktopFolder and CDrivesFolder.
- Make SHELL32_CoCreateInitSF slightly more generic and use it when we need to create and initialise a shell folder.
- Now SHELL32_BindToFS is used only by CFSFolder but SHELL32_CoCreateInitSF still uses the generic _ILSimpleGetTextW (it accesses the pidl).

svn path=/trunk/; revision=72167
2016-08-09 18:05:50 +00:00
Dmitry Chapyshev b346062c73 [INPUT]
- Implement 'Remove', 'Set Default' for input methods

svn path=/trunk/; revision=72166
2016-08-09 14:01:52 +00:00
Pierre Schweitzer 22f90f2210 [KMTESTS:CC]
Complete the tests for Cc: not only check for alignment, but also check that expected data are returned.
Thanks to Thomas for his help on this :-).

CORE-11003

svn path=/trunk/; revision=72165
2016-08-09 12:43:18 +00:00
Thomas Faber 7849fac958 [NTOS:CC]
- Gracefully handle failure to obtain virtual memory when creating a VACB. We now no longer crash when running out of virtual memory during (large) file operations (but will still crash when running out of physical memory).
CORE-11533

svn path=/trunk/; revision=72164
2016-08-09 07:59:07 +00:00
Thomas Faber 0c43b4ec9c [NTOS:MM]
- Correctly reserve the whole 4 MB of HAL address space instead of just 2 pages
CORE-11533

svn path=/trunk/; revision=72163
2016-08-09 07:48:09 +00:00
Thomas Faber 2a05ceca1d [NTOS:MM]
- Accept memory areas that end at 0xffffffff
CORE-11533

svn path=/trunk/; revision=72162
2016-08-09 07:43:51 +00:00
Thomas Faber 41defc9597 [NTOS:MM]
- In debug builds, invalidate the MEMORY_AREA's Magic on destroy to catch potential uses after free

svn path=/trunk/; revision=72161
2016-08-09 07:28:02 +00:00
Dmitry Chapyshev 8a32608dfe [INPUT]
- Implement add input methods
- Some improvents

svn path=/trunk/; revision=72160
2016-08-08 20:30:36 +00:00
Benedikt Freisen 3185db7675 [MSPAINT] Handle settings from registry correctly. Patch by Carlo Bramini. CORE-11400
svn path=/trunk/; revision=72158
2016-08-08 14:00:18 +00:00
Pierre Schweitzer 77624f187f [FASTFAT]
Fix a FIXME: update the last writing date in case of null-length write.

svn path=/trunk/; revision=72157
2016-08-08 12:44:15 +00:00
Pierre Schweitzer 2a1acea36f [FASTFAT]
Opening file by ID is not possible with FAT.

svn path=/trunk/; revision=72156
2016-08-08 07:28:14 +00:00
James Tabor f2e1baa17e [User32]
- Fix bug that was uncovered by r72143. See CORE-11810.
- Move System Commands to server side. Leaving Alt-Tab and Scrolls.

svn path=/trunk/; revision=72155
2016-08-07 23:52:43 +00:00
Dmitry Chapyshev 6b265ca585 [INPUT]
- Implement list of keyboard layouts on Settings Page

svn path=/trunk/; revision=72154
2016-08-07 23:28:50 +00:00
Eric Kohl 71757bb0fe [LSASRV]
- Partital implementation of LsarRemoveAccountRights.
- Simplify LsapLookupAccountRightValue. Return ACCESS_MASK instead of NTSTATUS.
- LsarAddAccountRights: Check parameters before referncing the policy handle.

svn path=/trunk/; revision=72153
2016-08-07 22:36:07 +00:00
Hermès Bélusca-Maïto 17704fdd87 [ADVAPI32]: Addendum to r72151: It's incorrect to compare the variable of BOOL type with TRUE. Any non-zero value is considered to be "true". Caught by Thomas.
svn path=/trunk/; revision=72152
2016-08-07 19:11:08 +00:00
Hermès Bélusca-Maïto 1b15193628 [ADVAPI32]: Don't directly redirect IsTextUnicode to RtlIsTextUnicode, but use a helper function, so that the return value is correctly set to TRUE or FALSE. Indeed the former function returns a BOOL (long) while the latter returns a BOOLEAN (byte), and the high bytes in the return value could not be correctly set otherwise.
Adapted from a patch by 'andy-123'.

CORE-11803 #resolve #comment Fixesd, thanks!

svn path=/trunk/; revision=72151
2016-08-07 19:02:07 +00:00
Hermès Bélusca-Maïto 0644419fd1 [SDK][RTL][NDK]: Update RtlIsTextUnicode prototype.
svn path=/trunk/; revision=72150
2016-08-07 18:52:49 +00:00
Hermès Bélusca-Maïto 2ecffb24d7 [ADVAPI32]: Cleanup file headers and whitespace.
svn path=/trunk/; revision=72149
2016-08-07 16:57:45 +00:00
Hermès Bélusca-Maïto 13b28424d8 [APITESTS]: Add a test for advapi32!IsTextUnicode.
CORE-11803

svn path=/trunk/; revision=72148
2016-08-07 16:35:56 +00:00
Thomas Faber 1d2d985d11 [FASTFAT]
- Update FCB hashes after changing the path name
CORE-11377

svn path=/trunk/; revision=72147
2016-08-07 14:24:45 +00:00
Dmitry Chapyshev 85915846eb [INPUT]
- Create an empty project for re-working keyboard layouts management

svn path=/trunk/; revision=72146
2016-08-07 13:07:23 +00:00
Pierre Schweitzer 2f3c2c58d2 [FASTFAT]
After renaming a directory, rename any children FCB that would still exist in the FSD. This will allow next directory opening to properly work and open correct data.
This defeats corruption on directory renaming.
Unfortunately, this solution is not ideal and our driver should be reworked so that it quits using a hash table and it quits storing the whole path in the FCBs.

Deep thanks to Wim Hueskes and Thomas Faber for their help debugging the issue!

CORE-11377

svn path=/trunk/; revision=72145
2016-08-07 12:29:48 +00:00
Thomas Faber bf98b09370 [NTOS:CC]
- Define CcPfEnablePrefetcher
CORE-11799

svn path=/trunk/; revision=72144
2016-08-07 07:00:56 +00:00
Dmitry Chapyshev bc10137a10 [KBSWITCH]
- Use strsafe functions
- Use Shell Hooks in dll for detecting keyboard layout switching
- Fix bug in loading kbsdll

* Detection switch keyboard layout is now working in Windovs, but does not work in ReactOS (WH_SHELL not work in win32k)

svn path=/trunk/; revision=72143
2016-08-06 20:48:33 +00:00
Dmitry Chapyshev a32f426a76 [WIN32K]
- Detect Alt+Shift hotkeys and send input language change request message to window

* Switching the keyboard layout works now. The code needs to be improved

svn path=/trunk/; revision=72142
2016-08-06 17:43:57 +00:00
Eric Kohl e6597810f6 [LSASRV]
Move ServiceInit() into a separate file.

svn path=/trunk/; revision=72141
2016-08-06 17:07:59 +00:00
Hermès Bélusca-Maïto 3027d2e22f [EVENTVWR]
Don't hardcode a fixed size for the memory buffer holding the event details data to be copied into the clipboard, but instead compute it using the real lengths of the different strings. Use also StringCbPrintfW instead.

svn path=/trunk/; revision=72140
2016-08-06 16:21:02 +00:00