Commit graph

56574 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto a0c9db7610 [KERNEL32][CONSRV]
Make kernel32 / winsrv console CSR structures Win2k3-compliant.
The aim is to be able to put our kernel32.dll or winsrv.dll on win2k3, and vice-versa.

Most of the changes consist in:
- adding a HANDLE ConsoleHandle; to the structures, representing the console handle of the current application;
- reorganizing the order of the members in the different structures;
- few structures need to hold a event handle because it appears that some APIs create a event handle to perform some sort of synchronization with the console server (this is totally unused at the moment).
- Since CsrClientCallServer returns the value of ApiMessage.Status, then just use ApiMessage.Status instead of declaring another Status variable for querying the return value of CsrClientCallServer.

Part 1/X

Aside:
The VerifyConsoleIoHandle winetest problem is solved here (see CORE-7941 for more details).
CORE-7941 #resolved #comment Fixed in revision 62460, thanks :)

CORE-7931

svn path=/trunk/; revision=62460
2014-03-08 15:31:05 +00:00
Timo Kreuzer 7647ccfb92 [PSEH3]
Move the generation of the nested filter function to a different location 

svn path=/trunk/; revision=62459
2014-03-08 12:38:12 +00:00
Timo Kreuzer c2f825a0fe [PSEH3]
Enforce the use of a frame pointer in all functions that use PSEH, even when -fomit-frame-pointer option was specified. This way we don't need to explicitly tell PSEH with a global define, whether we have a frame pointer or not, which would also probably not have worked together with alloca().

svn path=/trunk/; revision=62458
2014-03-08 11:51:51 +00:00
Timo Kreuzer dc64b5bd63 [NPFS/NTOSKRNL]
Silence 2 more debug prints that are not so useful.

svn path=/trunk/; revision=62457
2014-03-08 11:37:03 +00:00
Timo Kreuzer 4ff9f64d52 [ACPI]
Silence some debug prints

svn path=/trunk/; revision=62456
2014-03-08 11:28:21 +00:00
Pierre Schweitzer b4a3df8d3f [NTOSKRNL]
Integrate Timo's review:
- Fix pointer arithmetic
- Remove unless variable

CORE-2582

svn path=/trunk/; revision=62455
2014-03-08 09:03:59 +00:00
Pierre Schweitzer ed057abe86 [VGAFONTEDIT]
- Fix CMake script (for PCH)

[IMAGESOFT]
- Fix CMake script (for PCH)

[GREEN]
- Add header guard
- Fix CMake script (for PCH)

This fixes rosapps build with RosBE 2.1.1

CORE-7716

svn path=/trunk/; revision=62454
2014-03-08 08:47:03 +00:00
Pierre Schweitzer 70dc7b586e [NOTSKRNL]
Fix Frenchism, spotted by Christoph

svn path=/trunk/; revision=62447
2014-03-07 21:51:11 +00:00
Pierre Schweitzer a101d80ab6 [FASTFAT]
Properly handle directories when notifying the kernel about creation.

This makes the MS test application fully passing on ReactOS.
You can find it at: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365261%28v=vs.85%29.aspx

CORE-2582

svn path=/trunk/; revision=62446
2014-03-07 20:30:29 +00:00
Pierre Schweitzer 3d38a13543 [FASTFAT]
Add really limited support for file system notifications.
In case of file creation, we report this.

More cases are missing, such as: dir creation, attributes change, size change, last write change.
See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364417%28v=vs.85%29.aspx as a reference

CORE-2582

svn path=/trunk/; revision=62445
2014-03-07 19:46:37 +00:00
Pierre Schweitzer d315b7bb39 [FASTFAT]
- Implement VfatNotifyChangeDirectory which handles file system notifications registration
- Also add support to dispatch routine for not queuing IRPs when pending and not required
CORE-2582

svn path=/trunk/; revision=62444
2014-03-07 19:42:54 +00:00
Pierre Schweitzer 0ef03fcf25 [FASTFAT]
Add required fields to handle file system notifications to device extension/VCB and properly initialize them on volume mount

svn path=/trunk/; revision=62443
2014-03-07 19:38:35 +00:00
Pierre Schweitzer 623048035a [NTOSKRNL]
- Implement FsRtlNotifyFilterReportChange
- Implement FsRtlNotifyUpdateBuffer
- Implement FsRtlCancelNotify
- Implement FsRtlNotifyGetLastPartOffset
- Fix implementation of FsRtlNotifyFilterChangeDirectory

This finishes the implementation of file system notifications inside the kernel.
Data are properly returned to the caller on changes.

CORE-2582

svn path=/trunk/; revision=62442
2014-03-07 19:33:38 +00:00
Amine Khaldi ce66ff5056 [XINPUT1_3]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62434
2014-03-05 14:31:26 +00:00
Amine Khaldi eb5a260b2e [WINMM]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62431
2014-03-05 12:46:34 +00:00
Amine Khaldi ec1dcd341e [USER32]
* Mark some APIs as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62430
2014-03-05 12:36:04 +00:00
Amine Khaldi 1116c00fa2 [SHELL32]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62428
2014-03-05 12:12:05 +00:00
Amine Khaldi 19962054f9 [NTDLL]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62427
2014-03-05 12:06:28 +00:00
Amine Khaldi 4e25055d91 [KERNEL32]
* Mark as hotpatchable.
CORE-7959

svn path=/trunk/; revision=62425
2014-03-05 11:45:39 +00:00
Amine Khaldi 41202d274f [CMAKE]
* User the proper target var name.
CORE-7959

svn path=/trunk/; revision=62424
2014-03-05 11:39:15 +00:00
Amine Khaldi 47ce544479 [WIN-ICONV]
* Import a library that provides iconv implementation using Win32 API.
[LIBXML2][LIBXSLT][MSXML3]
* Make use of this library to support Windows-1252 encoding.
* Fixes some failed msxml:domdoc tests.
CORE-6697

svn path=/trunk/; revision=62423
2014-03-05 10:42:27 +00:00
Hermès Bélusca-Maïto 61d834485b [APITESTS:kernel32]
Be more specific about which last error we expect.

svn path=/trunk/; revision=62419
2014-03-05 01:53:46 +00:00
Jérôme Gardou 73100dd557 [VFATLIB]
- remove useless dependency to psdk

svn path=/trunk/; revision=62418
2014-03-04 21:28:25 +00:00
Amine Khaldi 2b1527a421 [FREETYPE]
* Update to version 2.5.2. Thanks to Robert Naumann for providing a patch that I used as a base for this.
[WIN32K]
* Update the FreeType header inclusions.
CORE-7719

svn path=/trunk/; revision=62417
2014-03-03 20:41:39 +00:00
Eric Kohl 50c9a384f4 [ADVAPI32]
Implement the ANSI part of ion's half done patch from r59843. Fixes two more service bugs.

svn path=/trunk/; revision=62413
2014-03-03 15:44:44 +00:00
James Tabor 6334f63dbc [WinSS]
- Fix activate modal dialog when clicking on a disabled window (part 2) without zorder support. Other than clicking the tool bar, it will help activate the popup and bring it to the top. Panic mode support.
- Adapt window from point to ignore disabled windows. Attempting to fill a code hole. See CORE-6651.

svn path=/trunk/; revision=62410
2014-03-03 06:38:45 +00:00
Eric Kohl 6e275a78d2 [SERVICES]
RSetServiceStatus:  Set the wait hint and check point only if the service is in a pending state, otherwise they should be 0.

svn path=/trunk/; revision=62408
2014-03-02 23:39:20 +00:00
James Tabor d0ba06e7f2 - Move code, this relates to CORE-6651.
svn path=/trunk/; revision=62405
2014-03-02 22:42:00 +00:00
James Tabor 53b9cb60dc - Code cleanup and update. Change trace to error for tracking.
svn path=/trunk/; revision=62404
2014-03-02 22:39:02 +00:00
Amine Khaldi 35bcabdf00 [CMAKE]
* Don't treat warnings like errors in the Clang build just yet.

svn path=/trunk/; revision=62403
2014-03-02 22:11:49 +00:00
Timo Kreuzer a12d2d5e6c [PSEH3]
Start factoring out compiler support for nested functions (neither CLANG not C++ support it, so we will add some other crazy hacks later ;-))

svn path=/trunk/; revision=62402
2014-03-02 22:04:15 +00:00
Amine Khaldi 2948ed43c5 [SHELL32]
* Comment out some unused variables.
* Remove some unused default debug channel declarations.

svn path=/trunk/; revision=62401
2014-03-02 21:45:44 +00:00
Amine Khaldi 665aba875f [PSDK]
* Fix a FIXME.. Actually, the LLVM/Clang folks did this ;)

svn path=/trunk/; revision=62400
2014-03-02 21:42:19 +00:00
Amine Khaldi cdcdc82cda [LIB/ATL]
* Who came up with this _declspec thing ? Was it you Arch ?

svn path=/trunk/; revision=62399
2014-03-02 21:40:58 +00:00
Amine Khaldi a82fcfc024 [SHELL32]
* Remove accidentally added line (you'll get this Drag and Drop fun later ;) ).

svn path=/trunk/; revision=62398
2014-03-02 21:35:18 +00:00
Amine Khaldi 4d03b99484 [PSDK][SHELL32]
* Fix ShellMessageBox{A,W} calling convention. Spotted by Clang.

svn path=/trunk/; revision=62397
2014-03-02 21:23:04 +00:00
Amine Khaldi 257374c12b [PSDK]
* Don't warn about ignored attributes in Clang build.

svn path=/trunk/; revision=62396
2014-03-02 21:18:32 +00:00
Amine Khaldi 0dd2f479dc [SHELL32]
* Remove what seems to be a useless source file. This variable is defined and used in shell32_main.cpp.

svn path=/trunk/; revision=62395
2014-03-02 21:04:20 +00:00
Amine Khaldi d4a5969c22 [CMAKE]
* Remove some unsupported warning from the Clang build.

svn path=/trunk/; revision=62394
2014-03-02 20:57:57 +00:00
Timo Kreuzer 9e835893d0 [PSEH3]
- Switch parameters in _SEH3$_RegisterFrame and _SEH3$_RegisterTryLevel (just for consistency)
- rename _SEH3$_RegisterTryLevel macro to _SEH3$_RegisterTryLevel_
- Add TryLevel and HandlerType fields to the scope table, since we'll need these later
- Start factoring out some Clang specific macros

svn path=/trunk/; revision=62393
2014-03-02 20:54:04 +00:00
Amine Khaldi cb992793ac [CMAKE]
* Add a Clang toolchain file. Only Windows build is tested ATM.

svn path=/trunk/; revision=62392
2014-03-02 20:51:42 +00:00
Amine Khaldi 4916e626c0 [CMAKE]
* Disable PCH in Clang builds. We'll inspect this later.

svn path=/trunk/; revision=62391
2014-03-02 20:47:34 +00:00
Amine Khaldi 96b7e0dd7b [NDK]
* Fix a Clang warning.

svn path=/trunk/; revision=62390
2014-03-02 20:43:19 +00:00
Amine Khaldi 3800bc28b3 [CRT/INTRIN_X86]
* In Clang these are built-ins.

svn path=/trunk/; revision=62389
2014-03-02 20:42:26 +00:00
Amine Khaldi 2675d2c145 [CMAKE]
* Disable the MS extensions warning in Clang build.

svn path=/trunk/; revision=62388
2014-03-02 20:41:36 +00:00
Amine Khaldi dd0002fc05 [CMAKE]
* Use the GCC compatible dialect in Clang builds.

svn path=/trunk/; revision=62387
2014-03-02 20:27:39 +00:00
Amine Khaldi 6d213f3658 [CMAKE]
* Remove some unsupported flags from the Clang build options.

svn path=/trunk/; revision=62386
2014-03-02 20:08:07 +00:00
Timo Kreuzer eaf929fbe9 [CMAKE]
Add simple clang support to configure.cmp (use "configure clang", which will use ninja as the generator and clang as the compiler)

svn path=/trunk/; revision=62385
2014-03-02 19:53:15 +00:00
Eric Kohl fd28183355 [SERVICES]
RSetServiceStatus: Protect the service type from changes by the caller.

svn path=/trunk/; revision=62384
2014-03-02 19:49:33 +00:00
Timo Kreuzer 62dc9b0d32 [PSEH3]
- Switch the registration asm functions from a complete custom calling convention to regparm(2), so that it can be used in "returns_twice" based algorithm (required by CLANG, which doesn't support "asm goto" construct)
- Add support for saving all non-volatiles in the registration frame (also required by CLANG, since without asm goto, we cannot give the compiler the required hints to save these registers itself)

svn path=/trunk/; revision=62383
2014-03-02 19:36:50 +00:00