Commit graph

46912 commits

Author SHA1 Message Date
Rafal Harabien f6630535f2 [CDFS][FASTFAT][NPFS]
- Fix MSVC warnings

svn path=/trunk/; revision=52546
2011-07-05 13:55:39 +00:00
Rafal Harabien 2750bc8ed5 [MSAFD]
- Fix MSVC warning

svn path=/trunk/; revision=52545
2011-07-05 12:21:17 +00:00
Cameron Gutman d9a64c3019 [USETUP]
- Remove formatting and partitioning hacks which are unnecessary after fixing the invalid signature bug in the FAT formatting code

svn path=/trunk/; revision=52540
2011-07-04 19:39:34 +00:00
Cameron Gutman 4e5a783a2f [AFD]
- Move the TdiReceiveDatagram call to WarmSocketForBind like it is done for connects

svn path=/trunk/; revision=52539
2011-07-04 19:13:45 +00:00
Cameron Gutman 54f9acbf0d [AFD]
- Add support for AFD_INFO_INLINING_MODE
- Add support for setting AFD_INFO_RECEIVE_WINDOW_SIZE and AFD_INFO_SEND_WINDOW_SIZE
- None of this is used by our current msafd but mswsock_new uses it

svn path=/trunk/; revision=52538
2011-07-04 18:07:55 +00:00
Cameron Gutman 0e8f87ff82 [MSAFD/AFD]
- Pass the non-blocking information as a boolean (mswsock_new does this too)
[AFD]
- Don't block waiting for a connection to accept on a non-blocking listener

svn path=/trunk/; revision=52537
2011-07-04 17:37:45 +00:00
Timo Kreuzer c19f9ab75c [RTL]
- Fix RtlFindSetBits to search for bits before the HintIndex as well
- Remove a wrong (and commented out) ASSERT
- Fix MSVC warnings

svn path=/trunk/; revision=52536
2011-07-04 16:30:45 +00:00
Timo Kreuzer f3a297daba [NTOSKRNL]
- Initialize an uninitialized variable
- MI_GET_NEXT_COLOR() doesn't have an argument
- Fix a warning on MSVC

svn path=/trunk/; revision=52535
2011-07-04 16:26:52 +00:00
Cameron Gutman fd6bb26299 - Small fix for my last commit to prevent problems if ExAllocatePool fails
svn path=/trunk/; revision=52534
2011-07-04 15:45:58 +00:00
Cameron Gutman 72fe2efcf8 [AFD]
- Fix FIONREAD for datagram sockets

svn path=/trunk/; revision=52533
2011-07-04 15:35:16 +00:00
Cameron Gutman 00651a94cd [AFD]
- Fix a check so FIONREAD works for accepted sockets too

svn path=/trunk/; revision=52532
2011-07-04 00:30:04 +00:00
Rafal Harabien 47e38dc163 - Fix build
svn path=/trunk/; revision=52531
2011-07-03 23:32:00 +00:00
Rafal Harabien 260631bc82 [NORMALIZ]
- Remove .def file - we already have spec2def

svn path=/trunk/; revision=52530
2011-07-03 23:25:59 +00:00
Rafal Harabien 0750da242d - Remove breakpoint added by mistake to FreeLdr
svn path=/trunk/; revision=52528
2011-07-03 23:19:59 +00:00
Rafal Harabien 9c60ad5c59 [FREELDR]
- Remove debug prints added in previous commit...

svn path=/trunk/; revision=52527
2011-07-03 23:13:09 +00:00
Rafal Harabien 8d25697873 [FREELDR]
- Fix all MSVC warnings

svn path=/trunk/; revision=52526
2011-07-03 23:01:39 +00:00
Hervé Poussineau 56f5c1f824 [LDR] In case of unrecoverable failure, always exit
svn path=/trunk/; revision=52524
2011-07-03 21:34:52 +00:00
Hervé Poussineau efd1266b5b [LDR] Assume that lock is held only if lock method succeeded
svn path=/trunk/; revision=52523
2011-07-03 21:33:42 +00:00
Cameron Gutman 7056e2e757 [LDR]
- "Just to be sure" is no reason to overwrite a potential DLL load failure status

svn path=/trunk/; revision=52522
2011-07-03 20:16:12 +00:00
Cameron Gutman 4e60d722c9 [LDR]
- Don't overwrite the real unload status with the return value of RtlLeaveCriticalSection

svn path=/trunk/; revision=52521
2011-07-03 20:10:02 +00:00
Cameron Gutman df556f104f [MSAFD]
- Only shutdown the socket if it has not already been shutdown
- Fixes EINVAL messages

svn path=/trunk/; revision=52518
2011-07-03 16:24:19 +00:00
Hervé Poussineau 3657f4ff79 [LDR] Fix some mis-assignations
Brought to you by WinOCM
See issue #6353 for more details.

svn path=/trunk/; revision=52515
2011-07-03 10:58:26 +00:00
Olaf Siejka afc124a8c2 [KDCOM]
Increase KdpStallScaleFactor by a factor of 10. Fixes initial delay of debug output on faster PCs with WinDBG.

svn path=/trunk/; revision=52514
2011-07-03 10:13:53 +00:00
Timo Kreuzer 9629690528 [NTOSKRNL]
- Fix KdComponentTableSize
- Make assembly instruction in KiCallUserMode MASM compatible
- silence some KD internal debug prints
The MSVC bootcd boots to desktop, but crashes with BAD_POOL_HEADER before 2nd stage setup starts.

svn path=/trunk/; revision=52513
2011-07-03 09:56:59 +00:00
James Tabor 1a41825a28 - Fix Release build.
svn path=/trunk/; revision=52512
2011-07-03 08:46:07 +00:00
Cameron Gutman ba4ec529be [TCPIP]
- Only wait to bind to a port if INADDR_ANY is specified
- Fixes EADDRNOTAVAIL when running Firefox and ws2_32_winetest sock (which now gets further but still doesn't complete)

svn path=/trunk/; revision=52511
2011-07-03 02:13:57 +00:00
Cameron Gutman afa2c1d664 [AFD]
- We really do need to count the outstanding send IRP in our pending send count (with a detailed explanation of the reason included in the code)
- Wait on an outstanding send IRP to dispatch the disconnect
- When we receive a FIN from the other side and our receive comes back with 0 data, only close receiving on the socket because sending is still legal in this state
- Fixes many bugs on the ws2_32_winetest sock and likely lots of other partial disconnect related stuff
- Retest network related hanging bugs after this please (ftp dir hang is fixed)

svn path=/trunk/; revision=52510
2011-07-03 01:53:10 +00:00
Timo Kreuzer 82562115f8 [NTOSKRNL]
Fix KiConvertToGuiThread on MSVC builds, by using a raw assembly function instead of a (broken) inline asembly function
MSVC built kernel boots further now.

svn path=/trunk/; revision=52509
2011-07-03 01:04:01 +00:00
Cameron Gutman c1276124ac [IP]
- Handle an EPIPE error

svn path=/trunk/; revision=52508
2011-07-03 00:12:25 +00:00
Timo Kreuzer 12404ace17 [NTOSKNRL]
- Change an ASSERT to a KeBugCheck, since the assertion can fail for any invalid memory access and this is not an internal Mm failure.
- Remove 2 cases, that "Should NEVER happen on ARM3!!!", but can very well happen.
- Do NOT make the code cleaner, by releasing the PFN lock in the same function that acquires it, but keep it 2 functions down. This is because it *SHOULD* be that way, since some internal undocumented functions, that we do not implement but that are (theoretically) called from here, also do release the PFN lock. Thanks Alex for explaining this.

svn path=/trunk/; revision=52507
2011-07-02 23:11:06 +00:00
Cameron Gutman bfba57801e - Fix build
svn path=/trunk/; revision=52506
2011-07-02 23:07:45 +00:00
Cameron Gutman 279c82bd9f [OSKITTCP]
- Remove socket state checks from OskitTCPRecv and OskitTCPSend
- Oskit already returns ESHUTDOWN when sosend is called on a socket with SS_CANTSENDMORE so it is unnecessary
- The check in OskitTCPRecv broke returning success and 0 bytes on a graceful shutdown (We got the FIN, set SS_CANTRCVMORE, signaled the connection, tried to read and failed with ESHUTDOWN instead of succeeding with 0 bytes)

svn path=/trunk/; revision=52505
2011-07-02 22:57:30 +00:00
Cameron Gutman c7d3d99eaf [OSKITTCP]
- Signal readable when read is closed and writeable when write is closed
- This seems counterintuitive on the surface but signaling the socket in this way ensures that pending reads and writes are cancelled if either side shuts down send/receive
- Graceful close (recv() returns 0 bytes and FD_CLOSE is signaled when we receive a FIN) works much better

svn path=/trunk/; revision=52504
2011-07-02 21:47:30 +00:00
Cameron Gutman 0669007af7 [TCPIP]
- Implement support for timing out disconnects
- Add debug prints for oskittcp errors
[MSAFD]
- Set a disconnect timeout value that actually makes sense (1 second vs 100 nanoseconds)

svn path=/trunk/; revision=52503
2011-07-02 20:36:35 +00:00
Cameron Gutman f828c2431c [AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver

svn path=/trunk/; revision=52502
2011-07-02 20:26:21 +00:00
Cameron Gutman 16ded1b13b [TCPIP]
- Fix binding to an unspecified port on a connect so that it works reliably by asking the TCP library for a free port instead of assuming that one we have is free
- Fix binding to an unspecified port on a listen which previously would result in the address file not having information stored about the port number assigned
- Fix a nasty bug which resulted in us binding to an arbitrary port during a connect even when the client wanted a specific port
- Revert the hack that partially fixed this before

svn path=/trunk/; revision=52501
2011-07-02 15:37:37 +00:00
Timo Kreuzer b062ee8583 [FAT32]
- Really fix loading the MSVC built kernel, by moving the FAT sector buffer beyond the area for freeldr.sys
- Load segment only in one place

svn path=/trunk/; revision=52500
2011-07-02 15:08:54 +00:00
Cameron Gutman 7bff316a9a [OSKITTCP]
- Set SO_REUSEPORT on new sockets to allow binding to ports shared by sockets which are closed according to upper layers of tcpip but still pending a close in oskittcp (see the BSD try-10-times hack)
- Fill all members of the sockaddr_in struct when fulfilling a query accept request

svn path=/trunk/; revision=52498
2011-07-01 15:08:59 +00:00
Cameron Gutman a45e92a406 [AFD]
- Rewrite disconnect to work asynchronously

svn path=/trunk/; revision=52497
2011-07-01 14:31:37 +00:00
Timo Kreuzer 1fbeaa3bac [FAT32]
Add some code that does ... nothing, but fixes 2nd stage boot with msvc. To figure out why this is needed, is left as an excercise to the reader :)

svn path=/trunk/; revision=52496
2011-07-01 01:06:19 +00:00
Rafal Harabien 47003f6ddb [DDK]
- Fix ScsiPortWriteRegisterUchar prototype

svn path=/trunk/; revision=52495
2011-06-30 22:54:20 +00:00
Rafal Harabien a92db0cc1d [FREELDR]
- Allocate enough memory for unicode strings

svn path=/trunk/; revision=52494
2011-06-30 18:55:44 +00:00
Timo Kreuzer 53d165e2ae [CMAKE]
Add hlink and msi importlib to MSVC build

svn path=/trunk/; revision=52493
2011-06-30 16:03:41 +00:00
Cameron Gutman 97b25874fc [AFD]
- Fix several bugs related to the FD_WRITE event
- We would not set the sendable poll state if the socket had data waiting to be sent even if there was buffer space
- We did not set the poll state after performing a send
- We did not clear the sendable poll state if we ran out of buffer space

svn path=/trunk/; revision=52492
2011-06-30 06:04:09 +00:00
Timo Kreuzer ab849501e7 [FREELDR]
Remove the old boot method.
Its not needed anymore, since booting with more than 4GB works fine with the new method now. It didn't work anyway since the neccessary code in the kernel has been #if'ed out in r49445

svn path=/trunk/; revision=52491
2011-06-29 20:27:07 +00:00
Sylvain Petreolle b569cc99bd [ASM]
Use CR, LF and NUL in .ascii macro.

svn path=/trunk/; revision=52490
2011-06-29 16:40:14 +00:00
Timo Kreuzer fe0d2f6e05 [KDCOM]
Fix a typo

svn path=/trunk/; revision=52488
2011-06-28 15:15:28 +00:00
Timo Kreuzer a4f75706d0 [KDCOM]
Revert r52482, it didn't really work. Instead grab the StallScaleFactor from the PCR and use this as a base for the repeat count.

svn path=/trunk/; revision=52487
2011-06-28 15:12:02 +00:00
Olaf Siejka 7d7c3abd4d [TRANSLATION]
- CACLS, CALC and CHARMAP UTF8 conversion by Elton Chung;
- FONTVIEW, LOGON russian/ukrainian UTF8 conversion and SYSDM ukrainian fix by Igor Paliychuk;
- WIN32CSR czech translation update by Radek Liska;

svn path=/trunk/; revision=52486
2011-06-28 11:42:37 +00:00
Jérôme Gardou fb4322a63f [CMAKE]
- reapply 52463, it was a real fix :-)
log: fix typo, batc.sys -> battc.sys

svn path=/trunk/; revision=52484
2011-06-27 17:26:59 +00:00