Commit graph

47834 commits

Author SHA1 Message Date
Jérôme Gardou 72129a7449 [SETUPAPI]
- fix typo

svn path=/trunk/; revision=53205
2011-08-13 15:55:16 +00:00
Timo Kreuzer 769718b08d [USER32]
Partly sync static.c with wine, reduce diff between ros and wine code. The leak fix is taken care of. Also go back from Get/SetWindowLongPtr to Get/SetWindowLong for LONG values. Using the *Ptr version is wrong for LONG values!

svn path=/trunk/; revision=53204
2011-08-13 15:16:31 +00:00
Cameron Gutman d1613210c2 [NTOSKRNL]
- Display the loading message for drivers loaded by the PnP manager during boot
- Maybe now NDIS.SYS won't get all the blame for boot hangs ;)

svn path=/trunk/; revision=53203
2011-08-13 14:28:45 +00:00
Eric Kohl b4fdd97d15 [ADVAPI32]
Fix QueryServiceConfigEx[A/W]:
- If lpServiceConfig is NULL or cbBufSize is less than sizeof(QUERY_SERVICE_CONFIGA/W) pass a pointer to an internal status buffer to RQueryServiceConfigA/W.
- Revert r53153 and r53154. Adding 'in' and 'unique' attributes is NOT an option because this is not compatible with Windows.

svn path=/trunk/; revision=53202
2011-08-13 14:26:55 +00:00
Eric Kohl 33e3cab77d [ADVAPI32]
Fix EnumServicesStatusEx[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS_PROCESS) pass a pointer to an internal status buffer to REnumServicesStatusExA/W. Adding 'in' and 'unique' attributes in the idl file is NOT an option because this is not compatible with Windows.
- Check the InfoLevel.

svn path=/trunk/; revision=53201
2011-08-13 10:53:15 +00:00
Cameron Gutman 86f6c946e7 [IP]
- Zero the sin_zero member in the TDI_ADDRESS_IP struct

svn path=/trunk/; revision=53200
2011-08-13 04:03:26 +00:00
Timo Kreuzer ea132356c2 [KS]
Fix MSVC build

svn path=/trunk/; revision=53199
2011-08-12 16:53:15 +00:00
Timo Kreuzer 3572e5047e [CRT]
Add assembly stubs and aliases for c++ symbols for MSVC

svn path=/trunk/; revision=53198
2011-08-12 11:43:53 +00:00
Timo Kreuzer 28defeaade [SPEC2DEF]
Ignore redirections for c++ symbols, since this doesn't work with link

svn path=/trunk/; revision=53197
2011-08-12 11:41:35 +00:00
Cameron Gutman ef41655991 [USER32]
- Simplify finding the icon size in IntDrawState
- As a bonus, it now works for black and white icons too

svn path=/trunk/; revision=53193
2011-08-12 10:07:16 +00:00
Cameron Gutman 19abe262d6 [USER32]
- Fix a bitmap leak in IntDrawState

svn path=/trunk/; revision=53192
2011-08-12 09:54:50 +00:00
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