Commit graph

54464 commits

Author SHA1 Message Date
Alex Ionescu d6b7cc394d [NPFS-NEW]: Activate NPFS-NEW. Let's see what happens.
svn path=/trunk/; revision=60072
2013-09-13 08:01:10 +00:00
Alex Ionescu 384e5d6f11 [NTOSKRNL]: Activate the pseudo-quota system. It doesnt' do much but at least it can silence the debug spam. I think mike wrote it..
svn path=/trunk/; revision=60071
2013-09-13 08:00:16 +00:00
Alex Ionescu f2ca6ff5d0 [NPFS-NEW]: Fix pool corruption and crashing bugs in NpPeek, which was using sizeof instead of FIELD_OFFSET.
[NPFS-NEW]: Actually implement NpCancelWaiter instead of making it ASSERT.
[NPFS-NEW]: Critical fixes to NpAddWaiter and NpWaitForNamedPipe to fix logic flaws.
NPFS-NEW now behaves without any visible regressions, and exhibits only 2 failures in the kernel32 pipe winetest -- vs 120+ failures with the current NPFS driver. It has 0 ntdll pipe failures, and 0 kmtest pipe failures.

svn path=/trunk/; revision=60070
2013-09-13 07:49:42 +00:00
Alex Ionescu f9cb414f74 [NPFS-NEW]: Implement NpImpersonate, needed by FSCTL_PIPE_IMPERSONATE, called by ImpersonateNamedPipeClient (in advapi). Down to only 12 kernel32:pipe failures, a 1100% improvement over npfs.
svn path=/trunk/; revision=60069
2013-09-12 23:55:56 +00:00
Alex Ionescu 6f65345379 [NPFS-NEW]: Fix a bug in NpRemoveDataQueueEntry.
[NPFS-NEW]: Fix busted up NpGetNextRealDataQueueEntry and fix its usage.
These changes don't appear to "fix" any tests, but they were real bugs. Thanks to ThFabba.

svn path=/trunk/; revision=60068
2013-09-12 23:54:59 +00:00
Alex Ionescu fb79499369 [NPFS-NEW]: Fix moar bougs. pipe: 33920 tests execute (0 marked as todo, 84 failures), 0 skipped. Note that this is already better than trunk's npfs!
svn path=/trunk/; revision=60067
2013-09-12 22:42:13 +00:00
Jérôme Gardou 4f9c6d1106 [VGA_NEW]
- Lessons learnt: the more trivial, the more suspicious.
Fix build, and remind that MSDN is not always right.

svn path=/trunk/; revision=60066
2013-09-12 21:22:42 +00:00
Alex Ionescu b77b18fac3 [CSRSRV]: hbelusca: wait a sec ;-) Fix CsrCreateWait and CSR_WAIT_BLOCK to match Windows Server 2003 semantics, which don't have a "UserWaitList". Fix our winsrv not to call CsrCreateWait incorrectly (which corrupted the heap/stack when using windows's csrsrv.dll).
svn path=/trunk/; revision=60065
2013-09-12 21:05:58 +00:00
Jérôme Gardou fabd7b9297 [VGA_NEW]
- Use VideoDebugPrint macro instead of VideoPortDebugPrint function.
It's the same, but different (tm).

svn path=/trunk/; revision=60064
2013-09-12 20:58:12 +00:00
Jérôme Gardou 613e1df799 [VGA_NEW]
- Zero out the Int10 Bios call arguments structure before calling Videoprt Int10CallBios
 - Properly check for VESA BIOS return value from such calls
 - Use VGA registers to update the palette when possible.
Now bochs goes up to 3rd stage when using this driver in conjunction with framebuf_new.

svn path=/trunk/; revision=60063
2013-09-12 20:25:24 +00:00
Jérôme Gardou 1997f1ae38 [SETUPAPI]
SourceDisksFiles and SourceDisksNames inf section can be platform dependant.

svn path=/trunk/; revision=60062
2013-09-12 20:18:26 +00:00
Kamil Hornicek 4e23142740 [NTOSKRNL][KERNEL32]
Fix a few more cases of missing _SEH2_YIELD.

svn path=/trunk/; revision=60061
2013-09-12 10:06:34 +00:00
Thomas Faber 768c9544be [NTMARTA]
- Request the necessary SYNCHRONIZE access right. Fixes advapi32:security regression

svn path=/trunk/; revision=60060
2013-09-12 09:57:25 +00:00
Alex Ionescu 45d60558d0 [NTOSKRNL]: Implement ThreadIsTermination info class in NtQueryInformationThread.
[CSRSRV]: CsrInsertThread should call this API to make sure the thread isn't dead already. Update the callers to handle this possible failure.
This behavior was obeserved in Windows' CSRSRV.DLL. It now works in ReactOS as well.

svn path=/trunk/; revision=60059
2013-09-12 09:02:48 +00:00
Alex Ionescu 951ed16a33 [USER32]: Make ClientThreadSetup return TRUE, and document how initialization should work. Enable CsrConnectToUser in CSRSRV. Works-4-me(TM).
svn path=/trunk/; revision=60058
2013-09-12 08:41:25 +00:00
Alex Ionescu 18bb4e2eaf [SMLIB]: Use the right API port name. Now Windows's SMSS works fine in ROS.
svn path=/trunk/; revision=60057
2013-09-12 08:02:05 +00:00
Alex Ionescu 7e18d05872 [NTOSKRNL]: Fix the fix
svn path=/trunk/; revision=60056
2013-09-12 07:55:45 +00:00
Alex Ionescu b483aad5f9 [NTOSKRNL]: Make MiCreateImageSection return STATUS_SUCCESS, not some fucked-up ROS-specific status code.
[NTOSKRNL]: Make MmCreateSection do the correct access checks and parameter checks, just like ARM3 does. For example, asking for PAGE_EXECUTE on a non-image file no longer requests SYNCHRONIZE and FILE_READ_DATA...it asks... FILE_EXECUTE. Cause you know... that's what the caller..wants. Anyway, this, among other things, fixes LdrValidateImageChecksum (and those annoying errors 0xC0000022 in the logs). SMSS is now checking the checksums of Known DLLs just like before (in Win7 they stopped doing this to improve boot performance, lol). It also makes Windows' SMSS happy.

svn path=/trunk/; revision=60055
2013-09-12 06:01:52 +00:00
James Tabor 558e78421b Attempt to fix CORE-6024
svn path=/trunk/; revision=60054
2013-09-12 02:26:36 +00:00
Hermès Bélusca-Maïto e1e93ee7dd Fix other _SEH2_YIELD() issues, spotted for most of them by Pigglesworth, the other by myself.
I'm wondering how much remaining ones are in our code. Only the Lord knows...

svn path=/trunk/; revision=60053
2013-09-12 00:41:24 +00:00
Hermès Bélusca-Maïto 7af0cfc398 [NPFS_NEW]
Use _SEH2_YIELD when exiting from a _SEH2 block via a return or a goto (otherwise --> bug in the stack).
This limitation will be removed in SEH3, but it's not used at the moment.

svn path=/trunk/; revision=60052
2013-09-12 00:16:42 +00:00
Hermès Bélusca-Maïto 479489298b [NPFS_NEW]
Don't hardcode the first parameter of the bugchecks. Instead, I introduce a NpBugCheck macro and file identifiers
(their names conform to the existing name convention of the driver) so that, when bugchecking, we report as the
first parameter of the NPFS_FILE_SYSTEM bugcheck the file ID (in the high word) and the line (in the low word)
where the bugcheck was emitted.
See the MSDN article "Bug Check 0x25: NPFS_FILE_SYSTEM" - http://msdn.microsoft.com/en-us/library/windows/hardware/ff557436(v=vs.85).aspx
for more information.

Inspired from the existing ext2 driver.

Should be done for the other filesystems (FAT, NTFS, CDFS, Redirector, Mailslot, etc...).

svn path=/trunk/; revision=60051
2013-09-12 00:05:54 +00:00
Thomas Faber 9a9573505b [KERNEL32]
- Fix access rights when using CreateFile with FILE_FLAG_DELETE_ON_CLOSE

svn path=/trunk/; revision=60048
2013-09-11 23:31:11 +00:00
Hermès Bélusca-Maïto a9b62ec084 [NPFS_NEW]: Add file header info.
svn path=/trunk/; revision=60047
2013-09-11 23:19:20 +00:00
Amine Khaldi e7ced8199e [NTOSKRNL]
* Fix a copy pasted typo.

svn path=/trunk/; revision=60046
2013-09-11 22:09:41 +00:00
Amine Khaldi a1dd5cf574 [NTOSKRNL]
* Break down the checks as suggested by Alex. Brought to you by David Quintana.

svn path=/trunk/; revision=60045
2013-09-11 21:50:15 +00:00
Thomas Faber eb435bcc01 [NTOS:IO]
- Fix pool corruption resulting form a combination of r60038 and dubious SEH programming patterns

svn path=/trunk/; revision=60044
2013-09-11 21:23:23 +00:00
Amine Khaldi c433d59c31 [NTOSKRNL]
* Silence some debug prints.

svn path=/trunk/; revision=60043
2013-09-11 19:59:59 +00:00
Alex Ionescu 29cacf4e53 [NPFS-NEW]: ntdll_winetest pipe : 107 tests executed (0 marked as todo, 0 failures), 0 skipped.
svn path=/trunk/; revision=60042
2013-09-11 19:36:51 +00:00
Thomas Faber f5b3510fa4 [CMAKE]
- Improve MSVC warning settings

svn path=/trunk/; revision=60041
2013-09-11 19:25:48 +00:00
Hermès Bélusca-Maïto 7ebaa360b9 [SAC]: Don't return things from a VOID function (MSVC_warning--;)
svn path=/trunk/; revision=60040
2013-09-11 19:23:20 +00:00
Thomas Faber 08aa7a2432 [SPEC2DEF]
- Allow C++ redirects aka fix MSVC build

svn path=/trunk/; revision=60039
2013-09-11 19:19:11 +00:00
Alex Ionescu e4b198bc97 [NTOSKRNL]: Fix a literal metric fuckton of missing parameter checks in IoCreateFile. I know for a fact this fixes two ntdll pipe tests, it probably fixes a bunch of other tests too.
[NTOSKRNL]: Fix OPEN_PACKET definition. Also, allocate it from the pool in IoCreateFile, instead of the stack (Windows does too).
[NTOSKRNL]: IoCreateFile should only be setting IO_STATUS_BLOCK Information/Status if EA Buffer validation *Fails*, not if it succeeds!

svn path=/trunk/; revision=60038
2013-09-11 18:50:28 +00:00
Thomas Faber 14fc5d4748 [FRAMEDYN]
- Fix MSVC build
- Fix some name mangling issues
- Add stub libraries to make the dll actually usable. The GCC alias library is still broken though.

svn path=/trunk/; revision=60037
2013-09-11 18:36:27 +00:00
Amine Khaldi 9ec7c23c83 [SVCHOST]
* CMake file improvements.

svn path=/trunk/; revision=60036
2013-09-11 18:33:36 +00:00
Amine Khaldi eba1490a01 [SVCHOST]
* Use the DbgPrintEx based SvchostDbgPrint macro. We no longer have traces enabled by default here.

svn path=/trunk/; revision=60035
2013-09-11 18:20:30 +00:00
Alex Ionescu e25b46f43d [NPFS-NEW]: Use locking and IRP completion macros from NPFS snippet at "Common Driver Reliability Issues - Microsoft
download.microsoft.com/download/5/7/7/577a5684-8a83.../drvqa.doc". Fix a few incorrect exclusive vs shared lock acquires.

svn path=/trunk/; revision=60034
2013-09-11 17:10:30 +00:00
Amine Khaldi cd1307c71a [SCRRUN]
* Import from Wine 1.7.1.

svn path=/trunk/; revision=60033
2013-09-11 12:44:58 +00:00
Amine Khaldi c6cea14cef [KERNEL32_WINETEST]
* Sync with Wine 1.7.1.

svn path=/trunk/; revision=60032
2013-09-11 11:32:57 +00:00
Amine Khaldi 5424614ddc [WINE/INCLUDES]
* Update Wine's atlbase.h.

svn path=/trunk/; revision=60031
2013-09-11 11:09:23 +00:00
Amine Khaldi 76a0d6d73e [COMDLG32]
* Move the resource files to the appropriate folders.

svn path=/trunk/; revision=60030
2013-09-11 10:46:07 +00:00
Amine Khaldi e2e89189ab [ATL]
* Add _ATL_VER definition.

svn path=/trunk/; revision=60029
2013-09-11 10:20:46 +00:00
Alex Ionescu 529ec2cb68 [NPFS-NEW]:
NpfsCreate: 339 tests executed (0 marked as todo, 0 failures), 0 skipped.
NpfsConnect: 679 tests executed (0 marked as todo, 0 failures), 0 skipped.
NpfsReadWrite: 7154 tests executed (0 marked as todo, 0 failures), 0 skipped.
NpfsReadWriteAsync: 1176 tests executed (0 marked as todo, 0 failures), 0 skipped.
'Nuff said.

svn path=/trunk/; revision=60028
2013-09-11 07:05:15 +00:00
Alex Ionescu a8e4859598 [NPFS-NEW]: Multiple code fixes to almost all code paths. Mainly a collection of small bugs, structural errors, logic flaws, off-by-ones, etc. But they were enough to make the driver essentially useless. Now Thomas's kmtests NpfsCreate and NpfsConnect return absolutely zero failures. On to NpfsReadWrite....
svn path=/trunk/; revision=60027
2013-09-11 02:04:17 +00:00
Amine Khaldi f2664a3227 [ADVPACK_WINETEST]
* Sync with Wine 1.7.1.

svn path=/trunk/; revision=60026
2013-09-11 00:08:28 +00:00
Amine Khaldi 8516d91fba [ADVPACK]
* Sync with Wine 1.7.1.

svn path=/trunk/; revision=60025
2013-09-11 00:07:58 +00:00
Amine Khaldi 2d51bcc269 [CREDUI]
* Move the resource files to the appropriate folders.

svn path=/trunk/; revision=60024
2013-09-10 23:38:33 +00:00
Amine Khaldi 2f66f47d0c [DDK]
* Annotate swenum.h.

svn path=/trunk/; revision=60023
2013-09-10 23:31:39 +00:00
Amine Khaldi 54f807af0c [WINE/TEST]
* Add winetest_{get,add}_failures().

svn path=/trunk/; revision=60022
2013-09-10 23:30:54 +00:00
Amine Khaldi 1abc05ae78 [NTOSKRNL]
* Fix the locking in MiQueryBasicInformation to cover ARM3 too, not just RosMm. This makes sure we don't change the address space while querying it (or vice-versa).
* Don't attempt to query information for a terminated process (fixes some kernel32 loader winetests, matches Windows behavior).
* Brought to you by Alex Ionescu.

svn path=/trunk/; revision=60021
2013-09-10 22:21:52 +00:00