Commit graph

51784 commits

Author SHA1 Message Date
Cameron Gutman dae657d1a1 [NTOSKRNL]
- Print a warning in several cases where a wait may fail in an unexpected way

svn path=/trunk/; revision=57231
2012-09-03 22:19:05 +00:00
Cameron Gutman a757f3684e [MSAFD]
- Fix access rights on socket events

svn path=/trunk/; revision=57230
2012-09-03 22:00:16 +00:00
Alex Ionescu 706b25f988 [NTOSKRNL]: Fix a stupid bug in MiProtectVirtualMemory which was causing empty PTEs whose protection was being set to remain zero PTEs, instead of demand-zero PTEs, but still acquire a page table reference. When they were later touched in the page fault code, and made into demand-zero PTEs, they'd get referenced again, thus Aleksey hacked away all the referencing code to work around this (causing PDEs to disappear...)
[NTOSKRNL]: Restore the page table reference counting mechanism, and put it in a macro to be cleaner. Also use macros for testing PD boundaries, instead of math-by-hand.

svn path=/trunk/; revision=57229
2012-09-03 16:29:31 +00:00
Alex Ionescu 5547667b67 [NTOSKRNL]: Implement correct locking and unlocking of the working set, one of the biggest blunders in ARM3 so far.
[NTOSKRNL]: Implement MiDereferenceControlArea to avoid leaking CAs in failure cases.

svn path=/trunk/; revision=57228
2012-09-03 06:23:31 +00:00
Alex Ionescu 5b9e315fb7 [NTOSKRNL]: Make executive init functions fail if something didn't work, intstead of silently failing.
[NTOSKRNL]: Fix Win32k object initialization, fixes boot.

svn path=/trunk/; revision=57227
2012-09-03 01:12:58 +00:00
Alex Ionescu 80829aac14 [NTOSKRNL]: Fixed keyed event initialization.
svn path=/trunk/; revision=57226
2012-09-03 00:33:05 +00:00
Alex Ionescu fdf0f24838 [NTOSKRNL]: Fix what should be at least 40 KmTest:ob failures, by correctly using the right attributes, security mappings, flags, names, etc... for the object types. This probably fixes countless subtle bugs in applications/drivers that were non-obvious before, especially now that Device names are case insensitive, or that asking for certain GENERIC rights translates correctly.
Thank you thfabba (Thomas Fabber) for one of the most useful, yet ignored, tests in our suite. Hope this makes it up to you.

svn path=/trunk/; revision=57225
2012-09-02 22:06:42 +00:00
Alex Ionescu 3bd32fbc1b [NTOSKRNL]: Missed the one ASSERT that mattered...
svn path=/trunk/; revision=57224
2012-09-02 21:46:50 +00:00
Alex Ionescu c37fa08214 [NTOSKRNL]: Warn, but do not ASSERT, about the fact that we don't have commit charges yet. Fixes OllyDbg2 assertions (and probably others too).
svn path=/trunk/; revision=57223
2012-09-02 20:56:55 +00:00
Alex Ionescu 74f2cde659 [NTOSKRNL]: No longer force PAGE_READWRITE for allocations. Seems Mm is now mature enough to handle this. Tried with some winetests and they look happier.
svn path=/trunk/; revision=57222
2012-09-02 20:49:31 +00:00
Alex Ionescu 073dea7474 [NTOSKRNL]: Implement MiCheckSecuredVad and stop whining about not supporting SEC_NO_CHANGE, cleaning up the log.
[NTOSKRNL]: Kill a bunch of now-useless DPRINT1s in Mm, significantly cleaning up the log.
[HIVES/MSI]: .NET needs InstallRoot, not InstallDir. Kills millions of DPRINT1s, thus cleaning up the log.

svn path=/trunk/; revision=57221
2012-09-02 18:54:05 +00:00
Alex Ionescu 00e311967b [NTOSKRNL]: Restore the protect hack, maybe it's not as no-op as it seems.
svn path=/trunk/; revision=57220
2012-09-02 18:03:14 +00:00
Mike Nordell d1cd8f60ab Comment-fix. Get/Set flip.
svn path=/trunk/; revision=57219
2012-09-02 15:33:32 +00:00
Alex Ionescu e24ab55f65 [NTOSKRNL]: Remove another useless ASSERT.
svn path=/trunk/; revision=57218
2012-09-02 08:21:18 +00:00
Alex Ionescu e715ded83a [NTOSKRNL]: Fix stupid checks
svn path=/trunk/; revision=57217
2012-09-02 08:17:58 +00:00
Alex Ionescu ec28155f4f [NTOSKRNL]: Kill not-needed assertion.
svn path=/trunk/; revision=57216
2012-09-02 08:13:24 +00:00
Alex Ionescu 07c872333e [NTOSKRNL]: Do not return data in failure cases in NtProtectVirtualMemory.
[NTOSKRNL]: No longer support non-ARM3 sections in NtProtectVirtualMemory, as the only OS calls were already NO-OPS.
[NTOSKRNL]: Always use ARM3 sections unless SEC_PHYSICAL_MEMORY is used, and make the check explicit.
[NTOSKRNL]: No longer support allocating memory on top of non-ARM3 sections.
[NTOSKRNL]: No longer ASSERT when certain features are not yet implemented, instead return an error code.
[NTOSKRNL]: Add another check in NtFreevirtualMemory when invalid memory is being freed, insert of ASSERTing.
[NTOSKRNL]: Implement and use MiIsEntireRangeCommitted when protecting memory to make sure the entire range is committed.
This patch removes multiple hacks, ASSERTs, and evil mixing of ARM3 and non-ARM3 code/memory.

svn path=/trunk/; revision=57215
2012-09-02 01:17:42 +00:00
Timo Kreuzer b783283577 [INTRIN]
Mark intrinsics on gcc with __attribute__((artificial)) so that they appear as one unit in the debug info. This way traces don't point inside the implementations, when they cause an eception, but rather to the line where they are used.

svn path=/trunk/; revision=57214
2012-09-01 17:01:05 +00:00
Amine Khaldi ca021c3bf9 [SOUNDBLASTER]
* Nothing links to it, don't compile it.

svn path=/trunk/; revision=57213
2012-09-01 12:49:21 +00:00
Amine Khaldi a0841a5ada [DNSLIB]
* Nothing links to it, don't compile it.

svn path=/trunk/; revision=57212
2012-09-01 12:02:03 +00:00
Amine Khaldi 9f7d0ac646 [CMAKE]
* Improve this one while we're at it.

svn path=/trunk/; revision=57211
2012-09-01 11:37:24 +00:00
Amine Khaldi cd70b62ce1 [CMAKE]
* Addendum to r57181. By Hermès Bélusca.

svn path=/trunk/; revision=57210
2012-09-01 11:35:12 +00:00
Alex Ionescu cda03c0940 [NTOSKRNL]: Cleanup MmCreateArm3Section a little bit to handle file-backed sections in the future.
[NTOSKRNL]: Remove an ASSERT(FALSE) that was only there for testing.
[NTOSKRNL]: Support transition pages during prototype PTE faults, which is our first try at soft faults! Should fix ASSERTs that were seen in the previous attempts in ole32, corrupting the registry.
[NTOSKRNL]: It's fine for MiCreatePagingFileMap to fail in MmCreateSection -- don't assert and simply return failure. Should fix the ASSERTs taht were seen in KmTest.
[NTOSKRNL]: Enable richard's ARM3 section code unconditionally for all non-file backed sections. Works4me. Let's see what Testbot says.
Nobody has showed me how to use/where is PatchBot, and google founds 0 relevant results, so this is going into main again. However I'm actually home this week to revert if something goes wrong :)


svn path=/trunk/; revision=57209
2012-09-01 02:32:25 +00:00
Timo Kreuzer 5666d93992 [CRT_APITEST]
Fix broken test.

svn path=/trunk/; revision=57208
2012-08-31 17:20:56 +00:00
Mike Nordell 55e8f7ae69 Stop erroneous reporting of SEGV from test case. MS own CRT SEGV on NULL format string
svn path=/trunk/; revision=57207
2012-08-31 14:16:17 +00:00
Timo Kreuzer 455c9969d1 Fix build
svn path=/trunk/; revision=57206
2012-08-30 10:16:13 +00:00
Timo Kreuzer dcbf403aee [FREELDR/CRT]
Freeldr size is currently limited to 448 KB. On MSVC it was already at 442 KB, before wine's wctype table was used. The new wctype table is itself 37 KB. This lead to freeldr overflowing into memory regions that were used for the filesystem buffer, causing bootfailures. Fix this by giving freeldr it's own using _isctype(), since freeldr casts WCHAR to CHAR anyway.

svn path=/trunk/; revision=57205
2012-08-30 10:12:55 +00:00
Jérôme Gardou c4d952dc0f [MESA]
- fix build

svn path=/trunk/; revision=57204
2012-08-30 00:57:44 +00:00
Jérôme Gardou ff75ed1858 [LIBMESA]
- Use x86 ASM optimizations on GCC
- Don't compile useless stuff

svn path=/trunk/; revision=57203
2012-08-30 00:51:00 +00:00
Sylvain Petreolle 3d2d44a14c [ROSAPPS]
Add the imagesoft CMakeLists.txt (forgotten in previous commit.)

svn path=/trunk/; revision=57202
2012-08-29 21:07:55 +00:00
Sylvain Petreolle 36cc36e73f [ROSAPPS]
Move imagesoft to applications and add it to build.
Convert lang files to UTF-8.
Fix casts and x64 warnings.
Patch by Hermes Belusca.
See bug 7185 for details.

svn path=/trunk/; revision=57201
2012-08-29 20:44:54 +00:00
Sylvain Petreolle eefb798bff [ROSAPPS]
Add vgafontedit to build.
Convert the language resource files into UTF-8.
Fix x64 warnings.
Patch by Hermes Belusca.
Bug 7152.

svn path=/trunk/; revision=57200
2012-08-29 18:06:24 +00:00
Cameron Gutman a9e04af2a5 [WS2_32]
- Fix a memory overwrite bug in some crappy WINE code that leads to nasty memory corruption of the service cache entry. This corrupts the first field of the cache, causing it to always reallocate memory because it thinks the size is 0. This would be even worse if the code didn't overwrite the other 12 bytes of corruption with proper data on the next lines. This also caused the aliases value to be garbage because it pointed at uninitialized data.

svn path=/trunk/; revision=57199
2012-08-29 14:23:40 +00:00
Mike Nordell 049ada7e9d Silence compiler warning
svn path=/trunk/; revision=57198
2012-08-29 12:28:35 +00:00
Mike Nordell b94063d2da Silence compiler warning
svn path=/trunk/; revision=57197
2012-08-29 12:26:33 +00:00
Jérôme Gardou f8a94143da [WIDL]
- Fix build with MSVC
- Fix  bug on rgs file creation. Will be sent to wine

svn path=/trunk/; revision=57196
2012-08-29 12:25:55 +00:00
Amine Khaldi 8fdc3a3391 [DDRAW]
* We already have the correct rgs data in place. Fix build.

svn path=/trunk/; revision=57195
2012-08-28 23:17:31 +00:00
Timo Kreuzer 55e8e7e844 [USER32]
Use LONG instead of DWORD for a signed value

svn path=/trunk/; revision=57194
2012-08-28 20:24:55 +00:00
Jérôme Gardou 93bcd62701 [I_KNEW_IT_WOULD_HAPPEN]
- Fix build

svn path=/trunk/; revision=57193
2012-08-28 19:16:02 +00:00
Jérôme Gardou 339e914f82 [DIRECTX]
- sync ddraw, d3d8, d3d9 and wined3d with wine 1.5.11

svn path=/trunk/; revision=57192
2012-08-28 19:08:01 +00:00
Jérôme Gardou 820550bfd1 [CMAKE/WIDL]
- Add support for the wine COM interface registering

svn path=/trunk/; revision=57191
2012-08-28 19:02:29 +00:00
Jérôme Gardou c2d3694c91 [WINGDI.H]
- Add missing DMDO_* definitions

svn path=/trunk/; revision=57190
2012-08-28 09:27:07 +00:00
Cameron Gutman 3466b93822 [LWIP]
- Increase window size to 65535 so large sends work properly because send buffering still sucks

svn path=/trunk/; revision=57189
2012-08-28 00:36:47 +00:00
Cameron Gutman d9048b67de [AFD]
- Fix handling pending writes in the TDI_SEND completion routine

svn path=/trunk/; revision=57188
2012-08-28 00:26:26 +00:00
Cameron Gutman 083efd4ac3 [AFD]
- Rewrite a large portion of the send code to have proper support for overlapped and non-blocking sockets

svn path=/trunk/; revision=57187
2012-08-28 00:14:08 +00:00
Cameron Gutman f65fc45ba2 [TCPIP]
- Implement proper support for partial sends on TCP sockets
- This prevents a deadlock when a very very large packet is queued to be sent

svn path=/trunk/; revision=57186
2012-08-27 23:58:40 +00:00
Cameron Gutman c71cca6db6 [AFD]
- Fix enabling of some event select triggers

svn path=/trunk/; revision=57185
2012-08-27 22:18:29 +00:00
Cameron Gutman bc74b19760 [AFD]
- Mask out disabled events properly

svn path=/trunk/; revision=57184
2012-08-27 21:53:09 +00:00
Jérôme Gardou 3587ef7aff [MSVCRTEX]
- Better fix for DLLs not providing a DllMain function, as per Timo's remarks.

svn path=/trunk/; revision=57183
2012-08-27 21:34:42 +00:00
Amine Khaldi 5810d8370f [HAL]
* Don't compile lib_hal_pic for x64. Brought to you by Hermès Bélusca.
See issue #7309 for more details.

svn path=/trunk/; revision=57182
2012-08-27 21:24:22 +00:00