Commit graph

51777 commits

Author SHA1 Message Date
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
Amine Khaldi
2a0e108e5b [CMAKE]
* Prefer STREQUAL over MATCHES since we're comparing with strings here. Brought to you by Hermès Bélusca.
See issue #7306 for more details.

svn path=/trunk/; revision=57181
2012-08-27 18:58:27 +00:00
Amine Khaldi
b60aa289ab [PSEH2]
* Make _SEH_DontInline() static inline.

svn path=/trunk/; revision=57180
2012-08-27 18:55:37 +00:00
Jérôme Gardou
fdcdcb6339 [KERNEL32_APITESTS]
- Add some tests for lstrncpyW
- This function is fine, I wrote that when chasing some bug thinking this function was at fault.

svn path=/trunk/; revision=57179
2012-08-27 16:34:17 +00:00
Cameron Gutman
c49946e714 [AFD]
- Fix broken overlapped I/O on sockets

svn path=/trunk/; revision=57178
2012-08-27 06:50:01 +00:00
Cameron Gutman
f2ac4605ca [MSAFD]
- Add error translation for STATUS_ACCESS_VIOLATION

svn path=/trunk/; revision=57177
2012-08-27 06:34:21 +00:00
Cameron Gutman
2a9a4034d9 [AFD]
- Fix a bug causing the event passed to WSAEnumNetworkEvents to remain set after the call

svn path=/trunk/; revision=57176
2012-08-27 06:19:19 +00:00
Cameron Gutman
6c0d0cbab0 [AFD]
- Fix one of the worst bugs in AFD of all time. Our AFD code operated under the assumption that none of the input parameters would change once we called LockRequest. This assumption is completely false. The only guarantee that made was that the pages never disappeared from us, not they they couldn't be modified. There are frequent cases where the user-mode buffer was modified from underneath us (WSPRecv allocates the struct on stack which makes it invalid during overlapped operations that complete later). When this happened, we would bugcheck when we tried to unlock the buffers since we accessed this in a member of the struct the caller passed us.
- I've fixed this by adding a parameter to LockRequest which specifies whether the buffer should be copied back when it is unlocked.
- This bug has been around for ages and I was never able to figure out why we just freed garbage sometimes. Now that the ws2_32_winetest exposed it reliably, I was finally able to fix it.

svn path=/trunk/; revision=57175
2012-08-27 04:16:28 +00:00