Commit graph

47014 commits

Author SHA1 Message Date
Alex Ionescu 4f4b4e848c [RTL]: Cleanup, no code changes.
svn path=/trunk/; revision=52700
2011-07-16 19:03:50 +00:00
Alex Ionescu 3aab9ff5f6 [NDK]: Add RtlReleaseRelativeName.
[RTL]: Re-implement RtlDosSearchPath_U using new path functions from past commits. Uses correct behavior with RtlDoesFileExists (for relative paths, return success when file is locked -- for absolute paths, do not!). Also uses a more optimized path loop that does not alloc/realloc/free heap continously (only one heap allocation is used).

svn path=/trunk/; revision=52699
2011-07-16 18:58:52 +00:00
Cameron Gutman 6195434c6b [TCPIP]
- Fix the broken TDI_QUERY_CONNECTION_INFO implementation
- Perform buffer size checks on TDI_QUERY_MAX_DATAGRAM_INFO requests
[AFD]
- Greatly simplify AfdGetPeerName by using the remote address stored while connecting

svn path=/trunk/; revision=52698
2011-07-16 17:17:08 +00:00
Cameron Gutman 0ef6eb1c56 [AFD]
- Debugging overhaul

svn path=/trunk/; revision=52697
2011-07-16 16:57:07 +00:00
Olaf Siejka bcb29cc08e [TRANSLATION]
- Remove simplified chinese translation patch from previous commit. It didn't apply correctly;

svn path=/trunk/; revision=52696
2011-07-16 15:35:15 +00:00
Olaf Siejka fff052536d [TRANSLATION]
- Fix translation crediting by Elton Chung;
- Solitaire and Spider swedish translation by Ronny Svensson;
- Multiple applications translated to simplified chinese by Song Fuchang;

svn path=/trunk/; revision=52695
2011-07-16 13:01:48 +00:00
Alex Ionescu b9aaadf5ce [RTL]: Fix RtlDoesFileExists_UEx, thanks to ThFabba.
svn path=/trunk/; revision=52690
2011-07-15 21:59:06 +00:00
Alex Ionescu 8045981334 [NDK]: DEPENDENCY TRACKING. GET IT RIGHT. GODDAMN IT RBUILD.
svn path=/trunk/; revision=52688
2011-07-15 13:56:30 +00:00
Alex Ionescu 60aa578875 [RTL]: Implement RtlIsDosDeviceName_Ustr and make RtlIsDosDeviceName use it. Uses UNICODE_STRING APIs everywhere and similar to the old implementation.
svn path=/trunk/; revision=52687
2011-07-15 13:08:43 +00:00
Alex Ionescu 048a29ec85 [KERNEL32/RTL]: Fix build.
svn path=/trunk/; revision=52686
2011-07-15 01:44:03 +00:00
Alex Ionescu a595971d83 [RTL]: Implement RtlDoesFileExists_UstrEx, RtlDoesFileExists_UStr, RtlDoesFileExists_UEx.
[RTL]: Make RtlDoesFileExists_UStrEx use the new RTL_RELATIVE_NAME structure and also support whether or not sharing violations should return success or not.
[RTL]: For now, use the old RtlDosPathNameToNtPathName API instead of the newer one.

svn path=/trunk/; revision=52685
2011-07-15 01:29:10 +00:00
Alex Ionescu 42cac56e9d [RTL]: Fix prototype of RtlDosPathNameToNtPathName_U and fix code to match the new prototype.
[NDK]: Add RTL_RELATIVE_NAME_U which is the Windows 2003+ structure used instead of CURDIR for all relative path APIs.

svn path=/trunk/; revision=52681
2011-07-14 15:33:29 +00:00
Gabriel Ilardi eaf86bb07c [CALC]
- Workaround linking to msvcrt in rbuild, patch by Alexander Yastrebov
See issue #6358 for more details.

svn path=/trunk/; revision=52678
2011-07-14 11:36:52 +00:00
Olaf Siejka 88c567d127 [NPFS]
- Comment out ASSERT, requested by Timo;

svn path=/trunk/; revision=52669
2011-07-12 22:33:53 +00:00
Cameron Gutman 3bf6ac15e4 [WS2_32_WINETEST]
- Fix check to catch WSAEnumProtocols failure

svn path=/trunk/; revision=52668
2011-07-12 21:46:42 +00:00
Cameron Gutman 716ab53776 [IP]
- Store the address of an outgoing NIC properly (gethostname() fix)
- Don't do an explicit bind if we don't have to (ws2_32_winetest sock hang fix)

svn path=/trunk/; revision=52667
2011-07-12 21:31:36 +00:00
Cameron Gutman 8143968417 [IP]
- Reset the reassembly timeout when a new fragment is received

svn path=/trunk/; revision=52663
2011-07-12 20:21:59 +00:00
Jérôme Gardou 582f691e96 [NTOSKRNL/MM]
- Remove unused/useless function

svn path=/trunk/; revision=52661
2011-07-12 18:25:00 +00:00
Cameron Gutman 4b515463e1 [NTOSKRNL]
- Fix broken handling for duplicate loads in IopLoadUnloadDriver
- Fixes duplicate loading messages being displayed during boot and duplicate legacy device nodes being created for the same driver
- NOTE: These fixes do not affect drivers loaded by FreeLoader which are handled by a separate function IopInitializeBuiltinDriver

svn path=/trunk/; revision=52660
2011-07-12 18:18:13 +00:00
Jérôme Gardou 9a41e5d6ec [APITESTS]
- Add some more tests to NtFreeVirtualMemory

svn path=/trunk/; revision=52659
2011-07-12 17:55:20 +00:00
Jérôme Gardou 68d0db0868 [APITEST]
- add one more test to NtFreeVirtualMemory

svn path=/trunk/; revision=52658
2011-07-12 17:36:52 +00:00
Timo Kreuzer 46d0ab4eb9 [WIN32K]
Fix MIN_SYSCALL_NUMBER and MAX_SYSCALL_NUMBER

svn path=/trunk/; revision=52656
2011-07-12 15:39:24 +00:00
Timo Kreuzer cfbbc68e9f [NTDLL/LDR]
Hey Arch, stop corrupting the stack!

svn path=/trunk/; revision=52654
2011-07-12 12:55:03 +00:00
Timo Kreuzer 0afc11163d [NTOSKRNL]
Align the idt to 16 bytes. Fixes random boot problems on MSVC builds.

svn path=/trunk/; revision=52647
2011-07-12 01:04:20 +00:00
Timo Kreuzer e6a335b92c [USETUP]
Do not add RosDbg section on _WINKD_ builds

svn path=/trunk/; revision=52646
2011-07-12 00:27:22 +00:00
Art Yerkes 2974d5e5d0 [CMAKE] Revert this for now.
svn path=/trunk/; revision=52644
2011-07-11 21:46:54 +00:00
Jérôme Gardou 0a8af6df7c [APITESTS]
- add simple tests for NtFreeVirtualMemory

svn path=/trunk/; revision=52642
2011-07-11 19:31:34 +00:00
Cameron Gutman d309cc3c56 [TCPIP]
- Increase the default and overflow size of the TCP/IP packet pool to allow for periods of very high network load (such as using BitTorrent or hosting high load services on a network) without dropping outgoing or incoming packets
- Increase the size of the TCP/IP buffer pool for the same reason

svn path=/trunk/; revision=52641
2011-07-11 19:18:34 +00:00
Art Yerkes 2ebb206d88 [CMAKE] Fix my mistake returning the original space, rather than the mapped area.
svn path=/trunk/; revision=52629
2011-07-11 07:11:12 +00:00
Timo Kreuzer 93a416ddfd [NTOSKRNL]
Implement the "SLIST hack". It checks whether the access to the Next member of the first list item of an iSList caused the exception, this can happen, when a concurrent thread pops the first entry and frees its memory between the point where the address of the entry is loaded and the access to it. This is done before the call to MmAccessFault to handle the theoretical scenario of a guard page exception being triggered by the fault, which we don't want to be handled.
Currently only kernel mode is handled.

svn path=/trunk/; revision=52628
2011-07-11 03:36:29 +00:00
Cameron Gutman 8aa496d875 [OSKITTCP]
- Fix a crash that occurs during BitTorrent downloads
- The official BitTorrent client works now

svn path=/trunk/; revision=52627
2011-07-11 02:44:32 +00:00
Alex Ionescu 7ef2dcbe22 [NTDLL]: Always compile your code before comitting, like my cat used to say.
svn path=/trunk/; revision=52626
2011-07-11 01:22:01 +00:00
Alex Ionescu 043ba4e228 [NTDLL]: Reimplement RtlGetCurrentDirectory_U... I couldn't even understand what the old version was doing. This one is at least commented and makes more sense.
svn path=/trunk/; revision=52625
2011-07-11 01:13:34 +00:00
Alex Ionescu 67f44266b0 [RTL]: RtlDetermineDosPathNameType_U Path is not optional. Checked build ASSERTs if not present. Also, \\? is valid, not only \\., so this should fix a bunch of incorrect path determinations. Aren't there supposed to be unit tests for these things?!
svn path=/trunk/; revision=52624
2011-07-11 00:47:44 +00:00
Alex Ionescu 2507c181d0 [RTL]: Clarify what RtlGetLongestNtPathLength returns instead of using "+9" as a magic constant.
svn path=/trunk/; revision=52623
2011-07-11 00:38:34 +00:00
Alex Ionescu 642d0d6141 [NTDLL] Merge LdrpResolveFullName and LdrpSearchPath and LdrpAllocateUnicodeString from the LDR Rewrite branch. Not actually used yet since they use Rtl APIs that ReactOS does not implement. Guess what the next commits are going to be about.
svn path=/trunk/; revision=52622
2011-07-11 00:25:26 +00:00
Alex Ionescu 1b775b8d8a [NTDLL]: Cleanup and half-fix LdrpCheckForLoadedDll, including adding comments for where it's broken. This uses RtlImageNtHeaderEx with much stringent checks as well.
svn path=/trunk/; revision=52621
2011-07-11 00:12:33 +00:00
Alex Ionescu f1c4df527e [RTL]: One day, Microsoft is going to stop using flags that are negatives. Fix boot/etc.
svn path=/trunk/; revision=52620
2011-07-11 00:10:27 +00:00
Rafal Harabien f9f36696f9 [WIN32CSR]
- Fix CSR hard error messages. Parameters are now converted to ANSI string which are expected by message format string.

svn path=/trunk/; revision=52619
2011-07-10 22:40:43 +00:00
Alex Ionescu c93b41ab3f [NDK]: Add missing RtlImageNtHeaderEx flags.
[RTL]: Implement RtlImageNtHeaderEx and make RtlImageNtHeader call it. This will result in much stricter (and correct) PE loading by default, and enable a flag which can do even stricter checks.
[NTDLL]: Export RtlImageNtHeaderEx (maybe NTOS should export it too, not sure).

svn path=/trunk/; revision=52618
2011-07-10 21:55:55 +00:00
Rafal Harabien d730393e07 - Add more NT status messages. Few of them are used by new LDR. Contains patch by Thomas Faber.
svn path=/trunk/; revision=52617
2011-07-10 19:47:45 +00:00
Jérôme Gardou c34fe70bfe [NTOSKRNL/MM]
- The initial region does not necessarily begins with the asked address, calculate remaining space acccordingly.

svn path=/trunk/; revision=52616
2011-07-10 19:24:49 +00:00
Cameron Gutman a149b1c33b [RTL]
- Revert r52612
- It came before its time ;)

svn path=/trunk/; revision=52615
2011-07-10 17:46:27 +00:00
Jérôme Gardou 0cb80213de [NTOSKRNL/MM]
- fix broken logic
- simplify calculation of remainig space to alter
- call ExFreePoolWithTag instead of ExFreePool
- return error on failure

svn path=/trunk/; revision=52614
2011-07-10 17:21:38 +00:00
Timo Kreuzer d28438f515 [NTDLL]
add some stubs for amd64

svn path=/trunk/; revision=52613
2011-07-10 16:43:03 +00:00
Cameron Gutman bee9140898 [RTL]
- Enable the proper implementation of RtlActivateActivationContextUnsafeFast

svn path=/trunk/; revision=52612
2011-07-10 16:33:23 +00:00
Cameron Gutman 6ef48aa4b4 [NTDLL]
- Fix memory corruption by reverting part of r52603

svn path=/trunk/; revision=52611
2011-07-10 16:25:42 +00:00
Rafal Harabien ce8c949828 [EVENTLOG]
- Fix MSVC warnings

svn path=/trunk/; revision=52610
2011-07-10 15:39:32 +00:00
Sylvain Petreolle 0685c73a53 [SFC_OS]
Implement SfcFileException, required by VBox Guest additions to install 3D support.

svn path=/trunk/; revision=52609
2011-07-10 15:05:14 +00:00
Rafal Harabien b509f3318b [NTDLL/LDR] - Fix one more USHORT and -1 comparison. Patch by Thomas Faber
svn path=/trunk/; revision=52608
2011-07-10 15:02:00 +00:00