Commit graph

47623 commits

Author SHA1 Message Date
Cameron Gutman 1b7607bcd9 [USER32]
- Fix bitmap leaks in STATIC_SetIcon and get_icon_size

svn path=/trunk/; revision=53191
2011-08-12 09:39:05 +00:00
Cameron Gutman 85e01470a4 [IPHLPAPI]
- Fix a massive memory leak of our entire TDI entity ID database after each call to getInterfaceInfoSet
- Fix another massive leak of our entire TDI interface table after each call to getInterfaceInfoByIndex and getInterfaceInfoByName
- Fix some uninitialized variable warnings
- Explorer no longer leaks horrendous amounts of memory (about 1 MB per minute even without network activity) when the network status icon is in the system tray

svn path=/trunk/; revision=53190
2011-08-12 08:12:47 +00:00
Cameron Gutman 2218bdc6ab [LWIP]
- Rewrite receive code to make it much simpler, handle some corner cases that weren't treated correctly, and fix the data corruption bug
- Downloaded successfully (no data corruption): OpenOffice 2.4, OpenOffice 3.3, BitTorrent 7.2.1, Firefox 5, Firefox 3.6, Firefox 3, Firefox 2, Abyss Web Server, Opera 9.64, and Opera 11.01

svn path=/trunk/; revision=53189
2011-08-11 21:52:41 +00:00
Cameron Gutman 6fbcf9c9ea [LWIP]
- Fix a buffer overflow when the packet queue has more packets than the receive request can take
- Remove an extra variable

svn path=/trunk/; revision=53188
2011-08-11 21:22:00 +00:00
Eric Kohl 5bf224e84b [WIDL]
- Reapply the switchtype patch from widl-ros.diff. This patch should be sent upstream to wine.

See issue #6406 for more details.

svn path=/trunk/; revision=53187
2011-08-11 18:34:26 +00:00
Amine Khaldi 79e63a86b2 [NETCFGX]
* Improve the PCH and activate it.

svn path=/trunk/; revision=53186
2011-08-11 15:17:39 +00:00
Amine Khaldi 79b21071d2 [WIN32DLLS]
* PCHify some modules when possible.

svn path=/trunk/; revision=53185
2011-08-11 15:16:48 +00:00
Amine Khaldi 76d63856af [MSVCRT]
* Improve the PCH.

svn path=/trunk/; revision=53184
2011-08-11 15:14:25 +00:00
Amine Khaldi 2b5f85b71e [MSAFD]
* Improve the PCH.

svn path=/trunk/; revision=53183
2011-08-11 15:12:53 +00:00
Amine Khaldi f74397a0da [HHCTRL]
* Add missing wineheaders dependency.
* Set hhctrl.h as a PCH.

svn path=/trunk/; revision=53182
2011-08-11 15:11:25 +00:00
Amine Khaldi 114b604b90 [NETSHELL]
* Improve the PCH.

svn path=/trunk/; revision=53181
2011-08-11 15:09:52 +00:00
Amine Khaldi 92d200d263 [MSWSOCK]
* Add a PCH.

svn path=/trunk/; revision=53180
2011-08-11 15:07:19 +00:00
Amine Khaldi 1d0b56fe2e [MSPORTS]
* Add a PCH.

svn path=/trunk/; revision=53179
2011-08-11 15:06:36 +00:00
Timo Kreuzer 044e4532ea [CMAKE]
Add add_delay_importlibs for MSVC

svn path=/trunk/; revision=53178
2011-08-11 13:39:06 +00:00
Cameron Gutman 248fe419e0 [MSAFD]
- Implement SO_LINGER and SO_DONTLINGER for getsockopt and setsockopt
- Fix and add buffer size checks
- Yes, we've gone this long without SO_LINGER support

svn path=/trunk/; revision=53174
2011-08-11 07:08:16 +00:00
Cameron Gutman 5ea7b9c764 [LWIP]
- Fix user-initiated hard connection closures

svn path=/trunk/; revision=53173
2011-08-11 06:39:17 +00:00
Amine Khaldi 0d496d7999 [WDMAUD.DRV]
* Set wdmaud.h as a PCH.

svn path=/trunk/; revision=53172
2011-08-11 00:11:30 +00:00
Jérôme Gardou 2514bbb7a0 [WIDL]
- use -Oif flag to produce modern (!) NT4 stubs, with Microsoft extensions to IDL language.
[ADVAPI32]
- Initialize *pcbBytesNeeded, as it's marked as [in], it needs to be in the 0-8k range before being passed to RPC.
Now 2nd stage got his mouse and keyboard again.

svn path=/trunk/; revision=53171
2011-08-10 23:19:52 +00:00
Amine Khaldi 33d019d677 [WS2_32]
* Improve the PCH.

svn path=/trunk/; revision=53170
2011-08-10 23:04:40 +00:00
Amine Khaldi 0c577da443 [WS2_32_NEW][WS2HELP]
* Add PCHs.

svn path=/trunk/; revision=53168
2011-08-10 22:40:12 +00:00
Cameron Gutman a632188d3a [LWIP]
- Remove 2 custom definitions to use the default values

svn path=/trunk/; revision=53166
2011-08-10 18:04:49 +00:00
Timo Kreuzer d42308e0a7 [NTOSKRNL]
Fix MSVC build, when KDBG is used

svn path=/trunk/; revision=53165
2011-08-10 16:12:45 +00:00
Timo Kreuzer 5d38248144 [ROSSYM_NEW]
Add RosSymAggregate and RosSymFreeAggregate stubs for MSVC

svn path=/trunk/; revision=53164
2011-08-10 16:11:59 +00:00
Timo Kreuzer 8db60ead01 [RTL]
Fix MSVC warning about signed/unsigned mismatch. In this case it was not a bug, because the compiler implicitly casts to unsigned, when signed and unsigned are compared, so (-1 < 0x23U) is false.

svn path=/trunk/; revision=53163
2011-08-10 13:52:30 +00:00
Olaf Siejka f7ead57f00 - Revert 53150, FAT corruption was not caused by ntdll:exception test;
svn path=/trunk/; revision=53161
2011-08-10 11:29:41 +00:00
Jérôme Gardou 5a88d3050f [SETUPAPI]
- fix confusion on buffer size between string length and number of bytes.
Might fix some infamous heap corruption bug during install. Please test.

svn path=/trunk/; revision=53160
2011-08-10 01:31:35 +00:00
Jérôme Gardou 73386b2c5c [WIDL]
- Don't include non host headers for host executables
I'm sure my dog told me that once.

svn path=/trunk/; revision=53159
2011-08-09 22:58:13 +00:00
Jérôme Gardou f0bd303530 [TOOLS]
- sync wpp, widl and wrc with wine 1.3.26

svn path=/trunk/; revision=53158
2011-08-09 22:51:55 +00:00
Thomas Faber 4dc0633003 [NTDLL_WINETEST]
- Fix MSVC build

svn path=/trunk/; revision=53157
2011-08-09 22:37:53 +00:00
Jérôme Gardou 72e0eb1606 [RC files]
- don't declare unicode strings, newer wrc doesn't like it, and it's (hopefully) useless.

svn path=/trunk/; revision=53156
2011-08-09 21:44:20 +00:00
Cameron Gutman 9227c6dd11 [LWIP]
- Tune several TCP attributes to behave similarly to Windows XP

svn path=/trunk/; revision=53155
2011-08-09 19:55:12 +00:00
Jérôme Gardou 34f157a953 [SERVICES]
- addendum to r53153 : [unique] and [ptr] can't be applied to [out] only parameters, so mark them as [in] too.
Now MSVC build gets as far as 3rd stage.

svn path=/trunk/; revision=53154
2011-08-09 18:50:00 +00:00
Jérôme Gardou 2e54793dbe [SERVICES]
- mark pointers argument of RQueryServiceConfigA/W as [unique], since they can be NULL.
See http://msdn.microsoft.com/en-us/library/aa367153%28v=VS.85%29.aspx for details.

svn path=/trunk/; revision=53153
2011-08-09 18:39:06 +00:00
Jérôme Gardou 2f1b32269b [RPCRT4]
- restore lost ros specific change.
Thanks Vic.

svn path=/trunk/; revision=53152
2011-08-09 17:43:37 +00:00
Timo Kreuzer bb14fcf0ac [INTRIN]
memory barriers
- implement a fixed version of __invlpg for MSVC, since the intrinsic is broken and can generate wrong instructions, when optimization is enabled
- add MSVC versions of _mm_mfence, _mm_lfence, _mm_sfence and __faststorefence
- add _mm_mfence() for gcc
- give _mm_lfence, _mm_sfence, __invlpg and __wbinvd proper 

svn path=/trunk/; revision=53151
2011-08-09 14:22:29 +00:00
Amine Khaldi e6f0664b39 [NTDLL_WINETEST]
* Skip ntdll exception tests until bug 6404 is fixed.

svn path=/trunk/; revision=53150
2011-08-09 12:10:04 +00:00
Cameron Gutman 6ac78fe2f9 [PCNET]
- Implement a simple buffer allocation algorithm which backs off the buffer size until all buffer allocations succeed

See issue #6284 for more details.

svn path=/trunk/; revision=53149
2011-08-09 07:30:10 +00:00
Cameron Gutman cd830b727c [PCNET]
- Allocate receive and transmit buffers (each 49152 bytes) as cached shared memory to increase the likelihood of a successful allocation in a low memory scenario
See issue #6284 for more details.

svn path=/trunk/; revision=53148
2011-08-09 06:36:10 +00:00
Cameron Gutman 6276b33958 [NDIS]
- Implement NdisMDeregisterIoPortRange
[PCNET]
- Don't call NdisMFreeMapRegisters if no map registers were allocated
- Call MiFreeSharedMemory before freeing map registers to avoid a crash because freeing map registers deallocates the adapter object

svn path=/trunk/; revision=53147
2011-08-09 06:00:38 +00:00
Timo Kreuzer b2cedb10b3 [RTL]
Fix MSVC warnings

svn path=/trunk/; revision=53146
2011-08-08 22:13:02 +00:00
Cameron Gutman 51388e8603 [AFD]
- Handle canceled reads on datagram sockets

svn path=/trunk/; revision=53145
2011-08-08 22:02:55 +00:00
Cameron Gutman 44bc45f23c [AFD]
- Fix shutdown() for datagram sockets
- Share some code between SD_BOTH and SD_RECEIVE

svn path=/trunk/; revision=53144
2011-08-08 21:57:06 +00:00
Cameron Gutman 2c6c184457 [IP]
- Merge r53134 and r53135 from the GSoC TCP/IP branch

svn path=/trunk/; revision=53143
2011-08-08 21:28:50 +00:00
Cameron Gutman 302ceb19e1 - Just kidding. Fix it for real.
svn path=/trunk/; revision=53142
2011-08-08 21:27:08 +00:00
Cameron Gutman d4b83ece4b [AFD]
- Fix shutdown(SD_RECEIVE) so it no longer brings down the entire connection

svn path=/trunk/; revision=53141
2011-08-08 21:23:24 +00:00
Timo Kreuzer fc43b3ef78 [LWIP]
Fix msvc build

svn path=/trunk/; revision=53140
2011-08-08 21:04:33 +00:00
Cameron Gutman dc37c61e1d [PCNET]
- Remove excessive BREAKPOINT usage
- Promote some DPRINTs to DPRINT1s

svn path=/trunk/; revision=53138
2011-08-08 12:06:26 +00:00
Amine Khaldi e58eab7411 [CMAKE]
* Convert some macros to functions.

svn path=/trunk/; revision=53137
2011-08-08 11:54:20 +00:00
Amine Khaldi ec0d0002e1 [CMAKE]
* Convert some macros to functions.

svn path=/trunk/; revision=53136
2011-08-08 11:45:34 +00:00
Timo Kreuzer 18d14eb931 [INTRIN]
_mm_pause has an implicit full memory barrier, emulate this on gcc as well

svn path=/trunk/; revision=53133
2011-08-07 23:16:39 +00:00