Commit graph

51751 commits

Author SHA1 Message Date
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
Cameron Gutman 55be1f528f [AFD]
- Fix some size assumptions that fail on 64-bit

svn path=/trunk/; revision=57174
2012-08-27 03:43:40 +00:00
Cameron Gutman 18c4b99d08 [AFD]
- Only access stack parameters when we're sure that the major function is correct

svn path=/trunk/; revision=57173
2012-08-27 03:42:28 +00:00
Jérôme Gardou ee2934ab01 [CRT]
- Fix some UNICODE vs non UNICODE definition mess.

svn path=/trunk/; revision=57172
2012-08-26 23:54:52 +00:00
Jérôme Gardou dec26d7804 [MINGWEX]
- mark DllMain as a weak symbol for GCC.
- supply a stubbed DllMain for MSVC.
- DllMain is optional, and some DLLs don't implement it. That doesn't mean that they have no entry point, it means "I have nothing more to initialize than the CRT".

svn path=/trunk/; revision=57171
2012-08-26 23:31:49 +00:00
Cameron Gutman 63d0bb53e4 [AFD]
- Change AFD to a very aggressive buffering policy
- It now attempts to keep its 64K receive buffer completely full at all times
- This increases network performance significantly

svn path=/trunk/; revision=57170
2012-08-26 22:31:18 +00:00
Cameron Gutman aa6611286c [LWIP]
- Fix broken handling of partial receives

svn path=/trunk/; revision=57169
2012-08-26 22:24:49 +00:00
Cameron Gutman 44356bb773 [AFD]
- Fix returning uninitialized data from FIONREAD when the socket is not bound or connected

svn path=/trunk/; revision=57168
2012-08-26 20:13:22 +00:00
Eric Kohl 1925cef7a0 [ADVAPI32/LSASRV]
- Implement LsaSetSeceret/LsarSetSecret (secret values are not encrypted yet) and LsaSetSystemAccessAccount.
- Improve some TRACE messages.

svn path=/trunk/; revision=57167
2012-08-26 14:05:27 +00:00
Thomas Faber 8003401991 [KMTESTS:EX]
- Make hard-coded calling convention exceptions in ExInterlocked compatible with GCC 4.7, and add the corresponding TODO about how ugly this is

svn path=/trunk/; revision=57166
2012-08-26 12:06:45 +00:00
Thomas Faber 38ce718bde [GDI32_APITEST]
- Fix build

svn path=/trunk/; revision=57165
2012-08-26 11:35:58 +00:00
Thomas Faber 3287e13f6f [GDI32_APITEST]
- Actually run the CreateIconIndirect test when it's called

svn path=/trunk/; revision=57164
2012-08-26 11:17:37 +00:00
Amine Khaldi dc347de6b4 [CMAKE]
* Escape the source folder here.

svn path=/trunk/; revision=57163
2012-08-26 11:14:52 +00:00
Aleksey Bragin d176c89f74 [SYSCALLS]
- Remove old unnecessary copy of syscalls.inc

svn path=/trunk/; revision=57162
2012-08-26 10:22:39 +00:00
Thomas Faber d9e106e264 [NTOSKRNL]
- Revert r57155 until test issues are fixed

svn path=/trunk/; revision=57161
2012-08-26 09:22:09 +00:00
Jérôme Gardou e524c90e6a [OPENGL32_WINETEST]
- Sync with wine

svn path=/trunk/; revision=57160
2012-08-26 09:17:35 +00:00
Timo Kreuzer dcc3ed4985 [PSEH2]
PSEH2 uses a special mechanism to deal with nested try blocks inside the same function. Instead of pushing a second exception registration record on the exception list, it uses an internal pointer to handle the different try-levels.
But when a function using SEH is inlined, the resulting code will push 2 registration frames on the stack. Now it happens with GCC 4.7.1 that these frames get shuffled on the stack, putting one for the inner try on a higher stack address. This is something that RtlUnwind regards as a bug and throws a STATUS_INVALID_UNWIND_TARGET exception. This was the reason for the crashing PSEH2_TEST, when compiled with GCC 4.7.1.
To fix this, I added a mechanism that will prevent functions using SEH from being inlined.

svn path=/trunk/; revision=57159
2012-08-25 22:19:02 +00:00
Eric Kohl a057794799 [ADVAPI32/LSASRV]
- Implement LsaCreateSecret/LsarCreateSecret, LsaOpenSecret/LsarOpenSecret,  LsaGetSystemAccessAccount/ LsarGetSystemAccessAccount and LsarSetSystemAccessAccount
- Improve some TRACE messages.

svn path=/trunk/; revision=57158
2012-08-25 15:40:06 +00:00
Timo Kreuzer 01800e8784 [GDI32_APITEST]
Fix use of uninitialized variables and remove broken test.
See issue #7299 for more details.

svn path=/trunk/; revision=57157
2012-08-24 20:25:29 +00:00
Aleksey Bragin ac719ab15d [NTDLL/LDR]
- Check result of walking the import descriptor and properly fail in case it wasn't successful.
See issue #7289 for more details.

svn path=/trunk/; revision=57156
2012-08-24 17:50:56 +00:00
Alex Ionescu bdfa3a9d79 [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]: Enable richard's ARM3 section code unconditionally for all non-file backed sections. Works4me. Let's see what Testbot says.

svn path=/trunk/; revision=57155
2012-08-24 17:17:36 +00:00
Jérôme Gardou a92cb2d0b2 [CMAKE]
- Fix build, sorry

svn path=/trunk/; revision=57154
2012-08-24 16:29:37 +00:00
Jérôme Gardou 7306a8ad57 [OPENGL]
- Add some optimizations (GCC) on compilation of libMesa
- Move opengl32 to the opengl directory
- Disable ICD refcounting for now, it does more harm than good.

svn path=/trunk/; revision=57153
2012-08-24 16:28:09 +00:00
Amine Khaldi 101b6555b7 [CMAKE/MSVC]
* Call cl directly instead of its full path using <CMAKE_C_COMPILER>. Figuring out why it didn't work is left as an exercise for the reader.

svn path=/trunk/; revision=57152
2012-08-24 16:21:33 +00:00
Amine Khaldi 01c8c03edb [CMAKE/MSVC]
Hermès Bélusca:
* Fix a bug in the way we compiled the boot sectors on the x64 build.
* Consistently set the mc compiler, like gcc builds.
* Use proper variables when referring to the compilers.
See issue #7297 for more details.

svn path=/trunk/; revision=57151
2012-08-24 15:36:17 +00:00
Thomas Faber 7eaab92549 [ADVAPI32]
- Correctly handle NULL passwords for services. Patch by Hermès Bélusca. Fixes crash in advapi32_winetest:service. See bug 7239, bug 7293.

svn path=/trunk/; revision=57150
2012-08-24 12:52:29 +00:00
Cameron Gutman afd0458148 [MSAFD]
- Stubplement support for SIOCATMARK
[WSHTCPIP]
- Add better debugging for unsupported options
- Implement setting SO_DONTROUTE (nop)
- Return WSAENOPROTOOPT for invalid SOL_SOCKET options

svn path=/trunk/; revision=57149
2012-08-24 06:23:45 +00:00