Commit graph

47183 commits

Author SHA1 Message Date
Jérôme Gardou
de40c205e9 [NTDLL]
- remove duplicate declaration of RtlAdjustPrivilege

svn path=/trunk/; revision=52891
2011-07-26 08:29:53 +00:00
Jérôme Gardou
3b76cb24ee [NDK/DDK]
Fix definitions of ZwPowerInformation and ZwInitiatePowerAction

svn path=/trunk/; revision=52890
2011-07-26 08:27:35 +00:00
Dmitry Gorbachev
98e48b5a92 [WIN32K]
Do not go beyond the MouseHistoryOfMoves[] bounds. Fixes a crash in Win32k.

svn path=/trunk/; revision=52887
2011-07-26 03:24:48 +00:00
Dmitry Gorbachev
21b5c3a4ec [MINGW-W64]
Reduce differences with upstream. Fixes crash if ReactOS is compiled with GCC 4.6.

svn path=/trunk/; revision=52886
2011-07-26 01:16:32 +00:00
Amine Khaldi
3c6161ed9e [MAGNIFY]
* Designate magnifier.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52885
2011-07-26 00:08:58 +00:00
Amine Khaldi
fa0f9a6367 [SPIDER]
* Designate spider.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52884
2011-07-25 23:50:18 +00:00
Amine Khaldi
bcfa5805e1 [SOL]
* Designate solitaire.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52883
2011-07-25 23:43:02 +00:00
Amine Khaldi
eed24c24a5 [DXDIAG]
* Slightly better PCH.

svn path=/trunk/; revision=52882
2011-07-25 23:34:29 +00:00
Amine Khaldi
facaa72810 [CMAKE]
* Link vfatxlib to chkstk.

svn path=/trunk/; revision=52881
2011-07-25 23:26:21 +00:00
Amine Khaldi
0e157e6285 [CALC]
* Make calc.h a PCH in rbuild build too (already done in cmake build).
* Improve this precompiled header.

svn path=/trunk/; revision=52880
2011-07-25 23:21:29 +00:00
Amine Khaldi
27b36a9e55 [AUDIOSRV]
* Designate audiosrv.h as a precompiled header and use it as one.

svn path=/trunk/; revision=52879
2011-07-25 23:06:48 +00:00
Jérôme Gardou
a28a0da7f1 [CMAKE]
- uext2, ufat and untfs are native dlls

svn path=/trunk/; revision=52878
2011-07-25 22:16:03 +00:00
Jérôme Gardou
a70f7a4d48 [CMAKE]
- add nativedll module type for msvc
- error out in msvc toolchain if unknown module type is set

svn path=/trunk/; revision=52877
2011-07-25 22:15:08 +00:00
Giannis Adamopoulos
86d2150cff [win32k]
- Implement support for debug channels. When a process starts, win32k will parse DEBUGCHANNEL environment variable in order to enable or disable specific debug channels or levels for this application. This gives us the ability to activate from user mode extended debug output for one application, for one component, for one level. In order to use the new debugging system we have to use the macros ERR, FIXME, WARN and TRACE. These are not used yet but shortly every DPRINT/DPRINT1 call will be converted to use the new macros
- Define several win32k channels that will be used in the future
- Remove some hacky definitions of the new macros

svn path=/trunk/; revision=52876
2011-07-25 21:45:47 +00:00
Timo Kreuzer
f1011b2525 [NTOSKRNL]
Fix bugs in ExInterlocked functions.

svn path=/trunk/; revision=52875
2011-07-25 21:06:44 +00:00
Daniel Reimer
04a0c4b70a Updated rapps database by Igor Paliychuk.
FF4 was removed, FF5 was added instead.
Thunderbird 5 was added, too.
Rest was updated to the newest version.

Maybe we should add http://source.winehq.org/patches/data/74067 from wine to get ftp support fixed.

svn path=/trunk/; revision=52874
2011-07-25 21:03:03 +00:00
Amine Khaldi
c036300525 [CMAKE]
* Update our asm support thanks to Jerome.
* Bring in CMakeDetermineCompilerId.cmake to make sure this will work for pretty much all systems.
* Disable the use of response files when you enable ccache.

svn path=/trunk/; revision=52873
2011-07-25 20:50:05 +00:00
Alex Ionescu
7a69501f10 [KERNEL32]: Now that we have the BaseStaticServerData initialized, don't build the \ReactOS and \ReactOS\System32 paths by hand: use the ones we have.
[KERNEL32]: Same goes for BaseCachedSysInfo. Use the BaseStaticServerData->SysInfo instead now.
[KERNEL32]: Don't assume that the BNO directory is called BaseNamedObjects (this won't be true once GedMurphy's dream of multi-session support comes true) -- instead, use the one from BaseStaticServerData.

svn path=/trunk/; revision=52872
2011-07-25 20:23:43 +00:00
Alex Ionescu
64c8e2bb02 [NTDLL]: Export RtlAcquire/ReleasePrivilege.
svn path=/trunk/; revision=52871
2011-07-25 20:21:51 +00:00
Alex Ionescu
2640844400 [KERNEL32]: Fix DPRINT1s.
svn path=/trunk/; revision=52868
2011-07-25 19:55:43 +00:00
Alex Ionescu
c7fec3098c [KERNEL32]: Arch, you have to initialize your strings first!
svn path=/trunk/; revision=52867
2011-07-25 19:26:40 +00:00
Amine Khaldi
3b813c314d [CMAKE]
* Add PCH variable (disabled by default) to configure scripts.
* Add ccache variable to unix configure script.

svn path=/trunk/; revision=52866
2011-07-25 19:08:52 +00:00
Amine Khaldi
5bd86be83b [CMAKE]
* Introduce a temporary cmake variable (PCH) to enable/disable cmake pch support as this requires our patched binary.
* Wrap pch macros around this variable.
* Implement the pch marco accordingly. By Jerome.

svn path=/trunk/; revision=52865
2011-07-25 19:05:00 +00:00
Alex Ionescu
f102b7df5f [CSRSRV]: Initialize CSR_CONNECTION_INFO in CsrpHandleConnectionRequest. Should fix the fact CsrProcessId was bogus before, as were the CSR PEB fields.
svn path=/trunk/; revision=52863
2011-07-25 18:39:56 +00:00
Amine Khaldi
c1e9a0abbe [CMAKE]
* De-duplicate IDL flags.

svn path=/trunk/; revision=52862
2011-07-25 18:39:25 +00:00
Alex Ionescu
b2fc587c78 [KERNEL32]: Fix querying the CSDNumber and RCNumber, as this seems to be a bug (no valid data was found on Windows).
svn path=/trunk/; revision=52861
2011-07-25 14:40:59 +00:00
Alex Ionescu
436714e461 [KERNEL32]: Fix potential buffer overflow.
svn path=/trunk/; revision=52860
2011-07-25 06:23:50 +00:00
Dmitry Gorbachev
f7e57490c6 [CSRSRV|NTOSKRNL|KERNEL32|NTDLL]
Fix multiple definition of variables.

svn path=/trunk/; revision=52859
2011-07-25 05:54:37 +00:00
Alex Ionescu
b9dc60fb3f [KERNEL32]: Define the BASE_STATIC_SERVER_DATA structure that BASESRV shares with KERNEL32 on Windows. In Windows, each CSR client/server pair can share such data through the PEB's ReadOnlyStaticServerData array. In ReactOS, this is not (yet) implemented, so if we don't have this data, kernel32 builds a "fake" copy instead. This "fake" copy will still be useful though as it'll let kernel32 cache some data (per-process). With proper CSRSS support, we could cache it per-system, but at least this is a start.
svn path=/trunk/; revision=52858
2011-07-25 03:28:33 +00:00
Timo Kreuzer
406885c606 [NTOSKRNL]
- Use NtTib.ExceptionList instead of Used_ExceptionList
- use ALIGN_DOWN_BY macro

svn path=/trunk/; revision=52857
2011-07-25 00:50:53 +00:00
Timo Kreuzer
66e64692b7 [NTOSKRNL]
Fix typos in comments

svn path=/trunk/; revision=52856
2011-07-25 00:07:07 +00:00
Timo Kreuzer
ee1da65d47 [NTOSKRNL]
- Convert KiCallUserMode from asm to C (with a small asm wrapper)
- Convert KiGetUserModeStackAddress into a C inline function

svn path=/trunk/; revision=52855
2011-07-25 00:01:29 +00:00
Alex Ionescu
425c57b083 [KERNEL32]: Fix the spec/pspec files to match 100% the exports on NT 5.2's Kernel32.dll
[KERNEL32]: Remove, add, fix, stub functions where necessary to handle these new/modified exports.

svn path=/trunk/; revision=52854
2011-07-24 23:42:09 +00:00
Timo Kreuzer
6b64e5ce54 [NTOSKRNL]
Forgot this file

svn path=/trunk/; revision=52853
2011-07-24 23:19:16 +00:00
Timo Kreuzer
dc06eeafec [NTOSKRNL]
Convert most ExInterlocked* functions from asm to C
Exceptions are ExInterlockedAddLargeStatistic and SList funcions

svn path=/trunk/; revision=52852
2011-07-24 23:14:39 +00:00
Olaf Siejka
d040534b02 [NDK]
- Remove Resource functions, as they are in wdm.h
- add KeTryToAcquireQueuedSpinLockRaiseToSynch, ExRaiseHardError & enum members
 Patch by Thomas Faber

svn path=/trunk/; revision=52847
2011-07-24 21:02:50 +00:00
Jérôme Gardou
5b8793626d [CMAKE]
- win32csr doesn't need to be linked to msvcrt

svn path=/trunk/; revision=52846
2011-07-24 18:41:07 +00:00
Jérôme Gardou
9142818431 [CMAKE]
- ufat, ufatx, uext2 and untfs don't really need to link to kernel32 and msvcrt.

svn path=/trunk/; revision=52845
2011-07-24 17:40:53 +00:00
Alex Ionescu
1b137b580f [NDK]: ntpoapi.h only includes Nt functions, not Zw, so leave the Zw's in the NDK.
svn path=/trunk/; revision=52844
2011-07-24 17:14:58 +00:00
Alex Ionescu
242c7a190e [NDK]: Fix Po function prototypes. Also guard against _PO_DDK_ which means caller already has ntpoapi.h.
svn path=/trunk/; revision=52843
2011-07-24 17:06:50 +00:00
Alex Ionescu
63f96f7207 [KERNEL32]: WTSGetActiveConsoleSessionId should return SharedUserData->ActiveConsoleId instead of having its own global.
svn path=/trunk/; revision=52842
2011-07-24 16:53:19 +00:00
Alex Ionescu
078cdde168 [NDK]: Add missing native power functions.
[KERNEL32]: Cleanup the power APIs. Fix calculation of battery percentage in GetSystemPowerStatus.

svn path=/trunk/; revision=52841
2011-07-24 16:50:03 +00:00
Jérôme Gardou
3989ede5bb [CRT]
- get back atexit handling as it was before.
(reverts 52838, 52829, 52828)
Thanks to Kai and Timo for the explanation

svn path=/trunk/; revision=52840
2011-07-24 16:45:41 +00:00
Dmitry Gorbachev
a96df8f6f2 [Win32k]
DbgLogEvent: replace EVENT_TYPE by LOG_EVENT_TYPE (spotted by GCC 4.6).

svn path=/trunk/; revision=52839
2011-07-24 16:17:55 +00:00
Dmitry Gorbachev
b91502ff16 Save the project from possession by evil spirits.
svn path=/trunk/; revision=52838
2011-07-24 16:17:32 +00:00
Jérôme Gardou
a28b6b7837 [KERNEL32]
- release PEB lock for each code path

svn path=/trunk/; revision=52837
2011-07-24 14:57:14 +00:00
Jérôme Gardou
d5534dc11d [MSVCRTEX]
- I say let msvcrt handle atexit registered functions.
Fix msvc build

svn path=/trunk/; revision=52836
2011-07-24 14:37:28 +00:00
Jérôme Gardou
c81afef878 [MSVCRT40]
- static link to crt, correct base address qnd entry point, etc...
See change log of MSVCRT20 for details.

svn path=/trunk/; revision=52835
2011-07-24 13:31:11 +00:00
Jérôme Gardou
7b87ca19ec [MSVCRT20]
- being a full blown crt dll, msvcrt20 needs a correct dllmain entry point

svn path=/trunk/; revision=52834
2011-07-24 13:22:15 +00:00
Dmitry Gorbachev
33b1f742e6 [ATL]
Invoke the member function through "this->".

svn path=/trunk/; revision=52833
2011-07-24 11:54:56 +00:00