Commit graph

47855 commits

Author SHA1 Message Date
Cameron Gutman 53e9ff45bf [NTOSKRNL]
- Fix NULL termination of strings in IoGetDeviceProperty
- Fixes garbage displayed in the Enumerator field of the device manager property page

svn path=/trunk/; revision=53232
2011-08-14 14:44:34 +00:00
Amine Khaldi 704a9a3f49 * Include NDK headers on-demand.
svn path=/trunk/; revision=53231
2011-08-14 12:59:05 +00:00
Amine Khaldi fe829a3587 [AUTOCHK][CMD][TASKMGR]
* Exclude some indirectly included headers.

svn path=/trunk/; revision=53230
2011-08-14 12:56:59 +00:00
Amine Khaldi 028428f2d4 [GDI32]
* Include NDK headers on-demand.
* Improve the PCH use.

svn path=/trunk/; revision=53229
2011-08-14 12:32:15 +00:00
Amine Khaldi c61fe8342b [DHCPCSVC]
* Include NDK headers on-demand.
* Improve the PCH use.

svn path=/trunk/; revision=53228
2011-08-14 12:06:23 +00:00
Amine Khaldi a923266533 [DBGHELP]
* Reduce rosstubs.c dependency to nothing but the PCH.

svn path=/trunk/; revision=53227
2011-08-14 11:48:00 +00:00
Eric Kohl b80c7bfe5c [ADVAPI32]
Fix indentation. No code change.

svn path=/trunk/; revision=53226
2011-08-14 11:41:28 +00:00
Amine Khaldi fb0e9ef233 [ADVAPI32]
* Use consistent debugging macros (Wine's).
* Include NDK headers on-demand.
* Improve the PCH.

svn path=/trunk/; revision=53225
2011-08-14 11:31:23 +00:00
Eric Kohl 0914efaa9a [SERVICES]
Fix the GENERIC_ALL access rights mapping for service handles.

svn path=/trunk/; revision=53220
2011-08-14 08:54:01 +00:00
Amine Khaldi 12af7c5f1f [AUTOCHK][CMD][TASKMGR]
* Include NDK headers on-demand.

svn path=/trunk/; revision=53218
2011-08-13 23:21:06 +00:00
Amine Khaldi 65e2999b86 [REGEDIT]
* Don't include the whole NDK for just one header.
* This allows us to depend on 49 headers less, and it shrinks the PCH by 2MB.

svn path=/trunk/; revision=53217
2011-08-13 22:06:42 +00:00
Amine Khaldi ac5fecad86 [WS2_32]
* Don't include the whole NDK for just one header.

svn path=/trunk/; revision=53216
2011-08-13 21:39:37 +00:00
Eric Kohl fb59583ee0 [ADVAPI32]
Fix and EnumDependentServices[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS/W) pass a pointer to an internal status buffer to REnumDependentServicesA/W.

svn path=/trunk/; revision=53214
2011-08-13 20:49:55 +00:00
Timo Kreuzer d292220a34 [WIN32K]
Fix return value of IntDesktopOkToClose, spotted by Cameron.

svn path=/trunk/; revision=53213
2011-08-13 20:40:41 +00:00
Cameron Gutman 99329a8c0d [UMPNPMGR]
- Store the correct buffer size for requests that aren't satisfied via the registry
- Fixes displaying the enumerator on the device manager property page

svn path=/trunk/; revision=53212
2011-08-13 20:26:44 +00:00
Timo Kreuzer 62f7fcc714 [NTOSKRNL/WIN32K/NDK]
- OkToClose procedure (OB_OKAYTOCLOSE_METHOD) returns BOOLEAN, not NTSTATUS
- Check ppi for NULL before dereferencing it in IntWinstaOkToClose (it is NULL, if we do our job of cleaning up the win32 process properly)
- Set the win32 process info to NULL on process cleanup
- Free THREADINFO and PROCESSINFO instead of leaking them
- Set NULL cursor, when the last thread is cleaned up in win32k, so we don't call UserSetCursor() in the process cleanup, when we don't have a THREADINFO anymore. This should hopefully fix a crash of MSVC builds.
- Remove unused UserGetNextHandle function
- Fix some warnings

svn path=/trunk/; revision=53211
2011-08-13 20:10:40 +00:00
Eric Kohl 6e9b31dafd [ADVAPI32]
Fix EnumServiceGroupW and EnumServiceStatus[A/W]:
- If lpServices is NULL or cbBufSize is less than sizeof(ENUM_SERVICE_STATUS/W) pass a pointer to an internal status buffer to REnumServiceGrouW or REnumServiceStatusA/W.

svn path=/trunk/; revision=53210
2011-08-13 19:57:32 +00:00
Jérôme Gardou ba2fe84f7a [SETUPAPI]
- fix broken check
- fix potential NULL pointer dereference
- fix non critical parameter checks.

svn path=/trunk/; revision=53209
2011-08-13 19:53:29 +00:00
Matthias Kupfer 9ace1afb58 move clean the screen to a later point
svn path=/trunk/; revision=53208
2011-08-13 18:57:33 +00:00
Timo Kreuzer c5a3858a3e [WIN32K]
Simplify the loop to remove the THREADINFO from the PROCESSINFO's list when cleaning up

svn path=/trunk/; revision=53207
2011-08-13 16:44:49 +00:00
Timo Kreuzer 679ad61edc [WIN32K]
- use the correct pool tags for PROCESSINFO and THREADINFO
- get rid of RETURN macro usage
- misc code cleanup

svn path=/trunk/; revision=53206
2011-08-13 16:27:30 +00:00
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