Commit graph

47834 commits

Author SHA1 Message Date
Alex Ionescu b1daf52fc4 [NTOSKRNL]: Implement SystemRangeStartInformation.
svn path=/trunk/; revision=53070
2011-08-04 22:41:39 +00:00
Alex Ionescu 1ba986ca27 [KERNEL32]: Fix the handle APIs. DuplicateHandle was pretty broken w.r.t console handles, and the Query/Set APIs didn't handle those at all.
svn path=/trunk/; revision=53069
2011-08-04 22:21:39 +00:00
Alex Ionescu 4e634556d9 [KERNEL32]: Cleanup and fix the Global* APIs for heap allocation. Mostly parameter check fixing, checking for errors and failure cases, as well as adding SEH (no real functionality improvement, other than fixing a security issue in GlobalLock).
[KERNEL32]: Rename hProcessHeap to BaseHeap, and only allow the heapmem.c access to this (change find.c to use RtlGetProcessHeap() like everyone else).

svn path=/trunk/; revision=53068
2011-08-04 22:18:01 +00:00
Cameron Gutman 52848c4373 [TCPIP]
- Comment out the timeout parameter until I implement disconnect timeouts for lwIP
- Branch repair (part 5 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53067
2011-08-04 20:14:13 +00:00
Cameron Gutman bf0ff35955 [IP]
- Remove oskittcp.h from the PCH
[LWIP]
- Don't define LWIP_PROVIDE_ERRNO because we get those from our CRT
- Branch repair (part 4 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53066
2011-08-04 19:03:20 +00:00
Cameron Gutman b5d92f2efc [SPEC2DEF]
- Merge a file that was forgotten in r52122
- Branch repair (part 3 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53065
2011-08-04 18:31:07 +00:00
Jérôme Gardou e2c053a307 [NTOSKRNL/MM]
- Actually, there is no need to crawl the entire tree, just going past the limit is enough. Thanks Timo.
- Fix MSVC warning, thanks Ged.
Now you have correct AND optimized code, Alex AND Timo should be happy.
I'm only the committer of these fix, the work was mostly done by Thomas Faber and Alex Ionescu.

svn path=/trunk/; revision=53064
2011-08-04 18:23:20 +00:00
Cameron Gutman b1d8a4df81 - Update to r53061
- Branch repair (part 2 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53063
2011-08-04 17:42:50 +00:00
Cameron Gutman 8b36c2fed5 - Revert r52573
- Branch repair (part 1 of x)

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53062
2011-08-04 17:16:20 +00:00
Jérôme Gardou 20087fcf26 [NTOSKRNL]
Fix build

svn path=/trunk/; revision=53061
2011-08-04 16:39:04 +00:00
Jérôme Gardou 415db7e8f3 [NTOSKRNL]
- begin search at the highest possible address in VAD tree

svn path=/trunk/; revision=53060
2011-08-04 16:21:22 +00:00
Alex Ionescu 8be271b56b [NTOSKRNL]: NLS tables should be mapped before PEB.
[NTOSKRNL]: Handle failure of NLS and PEB mapping correctly.
[NTOSKRNL]: Only set Peb->OsCSDVersion if NtHeader->Win32VersionValue is set.

svn path=/trunk/; revision=53059
2011-08-04 13:10:57 +00:00
Alex Ionescu 6da0958817 [KERNEL32]: Cleanup GetSystemInfo and friends, fix some bugs, mainly removing support for unsupported CPUs/architectures, and adding support for PROCESSOR_ARCHITECTURE_AMD64. Did some refactoring to support WoW64 in the future as well.
svn path=/trunk/; revision=53057
2011-08-04 00:55:52 +00:00
Alex Ionescu 17d451a6ae [KERNEL32]: Cleanup and fix bugs in the TimerQueue implementation... mainly related to wrong/incorrect parameter checks and error codes.
svn path=/trunk/; revision=53056
2011-08-04 00:54:00 +00:00
Jérôme Gardou 6f9699f671 [CMAKE]
- add cmake visual ASM compiler detection script, from cmake 2.8.5 + modification to handle ml32/64

svn path=/trunk/; revision=53055
2011-08-03 20:29:04 +00:00
Alex Ionescu 712de8491c [CSRSRV]: All the allocations must come from the CSRSS shared heap, not the current CSR heap.
svn path=/trunk/; revision=53052
2011-08-03 16:37:39 +00:00
Alex Ionescu a768ce8ab6 [CSRSRV]: CSRSS tries to connect with itself and already has the region mapped, so allow this as a hack.
svn path=/trunk/; revision=53051
2011-08-03 15:45:16 +00:00
Jérôme Gardou b3526a42af [PSDK]
- mark operators == et != of REFPROPERTYKEY as C++ externs

svn path=/trunk/; revision=53050
2011-08-03 15:20:36 +00:00
Alex Ionescu 5c00d70fce [CSRSRV]: Hey Arch, try creating a shared section before mapping it.
svn path=/trunk/; revision=53049
2011-08-03 15:04:21 +00:00
Jérôme Gardou 76598adce0 [CMAKE]
- use functions instead of macros.
This avoids adding flags multiple times.
See the PARENT_SCOPE option of cmake's command "set" for details.

svn path=/trunk/; revision=53048
2011-08-03 15:02:11 +00:00
Cameron Gutman 5658b2154c [NDIS]
- Fix adapter binding for the WinPcap driver

svn path=/trunk/; revision=53045
2011-08-03 07:52:51 +00:00
Alex Ionescu 8fd93a6e30 [CSRSRV]: Hey Arch, try creating a shared section before mapping it.
svn path=/trunk/; revision=53044
2011-08-03 06:18:42 +00:00
Alex Ionescu 5567f7d702 [CSRSRV]: Try to see why it appears some processes don't have a handle in their CSR_PROCESS_DATA....
svn path=/trunk/; revision=53043
2011-08-03 05:58:58 +00:00
Alex Ionescu a2c84355ef [CSRSS]: Fix broken logic.
svn path=/trunk/; revision=53042
2011-08-03 03:57:30 +00:00
Alex Ionescu 326dbd577b [CSRSS]: Hack header to fix build.
svn path=/trunk/; revision=53041
2011-08-03 03:30:56 +00:00
Alex Ionescu 27dfa433c4 [CSRSRV/KERNEL32]: Have CSRSS create a proper shared section (Based on code taken from the CSRSS rewrite in trunk) and attach it to every client.
[CSRSRV/KERNEL32]: Have CSRSS fill out the base server static data. Still a bit of a hack since we should have a basesrv to do this, but it'll fix the "can't install any drivers" bug as well as increase performance since we now cache a bunch of data system-wide.
[KERNEL32]: Remove all related hacks in kernel32.
[CSRSRV]: Only accept the incoming connection if we found CSR process data about it.

svn path=/trunk/; revision=53040
2011-08-03 03:09:02 +00:00
Cameron Gutman 8a7764ca2d [IP]
- Correct the error number comments for lwIP 1.4.0
- Translate ERR_WOULDBLOCK
- Translate ERR_IF and ERR_CONN to a more accurate status
[LWIP]
- Remove another debug print

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53039
2011-08-02 23:46:32 +00:00
Olaf Siejka ca2dc10f1b [CSRSRV]
- don't hack the dll entry point name. Patch by Thomas Faber

svn path=/trunk/; revision=53038
2011-08-02 22:54:30 +00:00
Cameron Gutman b0f4c80bdd [NETSHELL]
- Fix icon handle leaks in the network status taskbar icon

svn path=/trunk/; revision=53037
2011-08-02 22:18:57 +00:00
Eric Kohl 3d34260a62 [SERVICES]
- If a service will be started and another service is already running in the same image, send a start command instead of starting the process again.
This enables us to run multiple services within a single process, like svchost.exe.

svn path=/trunk/; revision=53036
2011-08-02 20:37:48 +00:00
Claudiu Mihail 5936438d83 [lwIP]
- Remove debug prints

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53035
2011-08-02 20:03:57 +00:00
Cameron Gutman 3684e4d392 [TCPIP]
- Remove some more debugging
[IP]
- Only print a message if the operation failed

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53034
2011-08-02 19:52:25 +00:00
Claudiu Mihail cb01eb2af4 [TCPIP]
- Remove debug prints
- Modify error code translations
[lwIP]
- Fix race conditions caused by checking the SocketContexts of connections from outside the lwIP main thread context
- Don't explicitly remove callbacks from pcbs (no reason to do apperently)
- Use pbuf_free_callback (which can be safely called from outside the lwIP main thread context) instead of pbuf_free

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53033
2011-08-02 19:20:40 +00:00
Rafal Harabien 657d4463e4 [WIN32K]
- Fix a typo. Spotted by Giannis Adamopoulos

svn path=/trunk/; revision=53032
2011-08-02 16:29:33 +00:00
Rafal Harabien b81d61b5e8 [WIN32K]
- Make UserDrawCaption much more simple and compatible with Windows. It supports now icon given in parameter places text and icon in valid position. Fixes Start button icon in explorer_new.
- Uncomment two function in win32k. I used one of them in UserDrawCaptionText and seems to work
- Add debug print to NtGdiPatBlt

svn path=/trunk/; revision=53031
2011-08-02 16:22:39 +00:00
Cameron Gutman 02b56ebcbc [AFD]
- Handle TDI receive completion better

svn path=/trunk/; revision=53028
2011-08-02 13:46:16 +00:00
Jérôme Gardou 6b39d13104 [CMAKE/GCC]
- fix entry point for native dlls

svn path=/trunk/; revision=53025
2011-08-02 06:11:12 +00:00
Jérôme Gardou 9d51236a9d [PSDK/WINNT.H]
- add DEFINE_ENUM_FLAG_OPERATORS macro

svn path=/trunk/; revision=53024
2011-08-02 06:10:15 +00:00
Rafal Harabien fef1661346 [NTOSKRNL]
- Fix *TRACE macros definition. See r53008 for more info.

svn path=/trunk/; revision=53023
2011-08-01 22:59:44 +00:00
Rafal Harabien 12bdc5e8e3 [WIN32K]
- Fix possible thread reference leak when calling hook
- Fix possible memory corruption if hook is unexpectedly removed
- Cleanup hooks a bit
- Fixes bug #1567 (explorer ghost in taskmgr)

svn path=/trunk/; revision=53022
2011-08-01 22:30:21 +00:00
Claudiu Mihail 95cdb2c148 [TCPIP]
- merge r53017
- do some code cleanup
[lwIP]
- do some code cleanup

svn path=/branches/GSoC_2011/TcpIpDriver/; revision=53020
2011-08-01 20:10:55 +00:00
Cameron Gutman 489942bf51 [TCPIP]
- Remove the extra debug prints since the bug has been fixed

svn path=/trunk/; revision=53019
2011-08-01 13:50:00 +00:00
Cameron Gutman 96272d084e [AFD]
- Use the correct access mode

svn path=/trunk/; revision=53018
2011-08-01 12:41:31 +00:00
Cameron Gutman 6f80903f43 [TCPIP]
- Cancel the disconnect timer if the disconnect is cancelled

svn path=/trunk/; revision=53017
2011-08-01 04:06:55 +00:00
Cameron Gutman f34cad36e2 [AFD]
- Cancel the in-flight disconnect IRP during socket closure
[TCPIP]
- Make a disconnect IRP cancelable

svn path=/trunk/; revision=53016
2011-08-01 03:54:19 +00:00
Art Yerkes a90824eeae [RTL]
Implemenet SwapSplayLinks, return 'NewElement' correctly when inserting.
Thanks to Alex Ionescu for helping out with this patch.

svn path=/trunk/; revision=53015
2011-08-01 03:23:53 +00:00
Cameron Gutman f1f448e2ba [OSKITTCP]
- Force the connection to be closed immediately
- Hopefully will fix the random bind issues caused by oskit becoming out of sync with the rest of the IP library

svn path=/trunk/; revision=53014
2011-08-01 03:13:18 +00:00
Cameron Gutman 2ec386e0dc [TCPIP]
- Add a couple more debug prints

svn path=/trunk/; revision=53013
2011-07-31 23:32:38 +00:00
Rafal Harabien 7f28186e88 [INETCPL]
- Add missing security propsheet to Polish translation. Should be synced to WINE. Spotted by Adam Stachowicz.

svn path=/trunk/; revision=53012
2011-07-31 23:00:20 +00:00
Rafal Harabien 409a194d76 [INETCPL]
- Add Polish language to build. Spotted by Adam Stachowicz

svn path=/trunk/; revision=53011
2011-07-31 22:50:05 +00:00