Commit graph

47679 commits

Author SHA1 Message Date
Cameron Gutman bf59a88887 [USETUP]
- Autodetect ACPI like we autodetect a multiprocessor configuration
- This will make the ACPI HAL the default on ACPI-compliant machines while the standard HAL will continue to be the default on older machines
- Please file bugs for any issues encountered when running in ACPI mode and assign them to me (I think it's very important to have working ACPI for 0.4.0 so I'd really like to get everything fixed now)
[TXTSETUP.SIF]
- Add a MP configuration for ACPI HAL
- Slightly modify the names of each HAL configuration

svn path=/trunk/; revision=53257
2011-08-15 06:27:23 +00:00
Cameron Gutman 5b64b837c1 [TXTSETUP.SIF]
- Add an option to install the ACPI HAL
- Feel free to try it out (you might be surprised)

svn path=/trunk/; revision=53256
2011-08-15 05:45:16 +00:00
Cameron Gutman a7c264087d [NTOSKRNL]
- Hack around a strange registry-related bug (we created the whole registry path previously but it won't let us open it without the correct volatile option) to fix devices enumerated via IoReportDetectedDevice

svn path=/trunk/; revision=53255
2011-08-15 05:43:16 +00:00
Cameron Gutman bf5c13ed02 [INF]
- Add hal.inf

svn path=/trunk/; revision=53254
2011-08-15 05:39:53 +00:00
Cameron Gutman ee731ff6d9 [NTOSKRNL]
- Also create the instance key when we create a new device object

svn path=/trunk/; revision=53253
2011-08-15 05:03:53 +00:00
Cameron Gutman 4f39606d60 [HAL]
- Also report the *PNP style IDs
- Don't hang when a power IRP is received

svn path=/trunk/; revision=53252
2011-08-15 04:07:40 +00:00
Cameron Gutman f23e722950 [HAL]
- Invalidate device relations so the child devices get enumerated

svn path=/trunk/; revision=53251
2011-08-15 03:44:10 +00:00
Cameron Gutman 3efa379202 [HAL]
- Fix string length calculation

svn path=/trunk/; revision=53250
2011-08-15 03:20:17 +00:00
Cameron Gutman a92715a798 [NTOSKRNL]
- Rewrite IopIsAcpiComputer (and rename to IopIsFirmwareMapperDisabled) to eliminate the need for the ENABLE_ACPI define
- IopIsFirmwareMapperDisabled now reads the registry entry that HAL sets to indicate that the firmware mapper should be disabled
- Partially rewrite IopUpdateRootKey so it does not interfere with HAL's PnP driver
- ACPI is automatically enabled when the ACPI HAL is loaded and disabled when the standard HAL is loaded

svn path=/trunk/; revision=53249
2011-08-15 02:15:18 +00:00
Cameron Gutman 6da6061048 [HAL]
- Fix a bug writing the DisableFirmwareMapper entry

svn path=/trunk/; revision=53248
2011-08-15 01:55:32 +00:00
Cameron Gutman 0819e297e7 [HALACPI]
- Fix several bugs involving garbage data in a PHYSICAL_ADDRESS struct

svn path=/trunk/; revision=53247
2011-08-15 01:19:20 +00:00
Cameron Gutman 21406f7ff3 [PCI]
- Don't report bogus interrupt resources

svn path=/trunk/; revision=53246
2011-08-15 00:28:33 +00:00
Cameron Gutman 10a5a5ac40 [NTOSKRNL]
- Add a debug print when AddDevice fails
- Fix IopStopDevice
- Fix a typo
- Reduce code duplication

svn path=/trunk/; revision=53245
2011-08-15 00:17:42 +00:00
Cameron Gutman 34a7661185 [HAL]
- Fix incorrect modification of device object flags

svn path=/trunk/; revision=53244
2011-08-15 00:08:47 +00:00
Jérôme Gardou 9512185005 [ROSSYM_NEW]
- add missing debug.h include

svn path=/trunk/; revision=53243
2011-08-14 21:39:37 +00:00
Jérôme Gardou 818d33cbe6 [ROSSYM_NEW]
- including debug.h once is enough
This time for real, sorry.

svn path=/trunk/; revision=53242
2011-08-14 21:25:25 +00:00
Jérôme Gardou 1ff79eeb3a [ROSSYM_NEW]
- including debug.h once is enough

svn path=/trunk/; revision=53241
2011-08-14 21:20:07 +00:00
Jérôme Gardou 7b68c5658a [ROSSYM_NEW]
- please, do not include debug.h from precompiled header :-/

svn path=/trunk/; revision=53240
2011-08-14 21:17:14 +00:00
Jérôme Gardou b3a155a9d9 [CMAKE]
- get back to DllMAinCRTStartup entry point

svn path=/trunk/; revision=53239
2011-08-14 20:34:13 +00:00
Jérôme Gardou 27329d3e73 [UNICOWS]
- doesn't have an entry point

svn path=/trunk/; revision=53237
2011-08-14 20:01:20 +00:00
Amine Khaldi 6b69d04d59 [ROSSYM_NEW]
* Add a PCH.

svn path=/trunk/; revision=53236
2011-08-14 18:12:05 +00:00
Amine Khaldi e3a1ac4593 * Include NDK headers on-demand.
svn path=/trunk/; revision=53235
2011-08-14 17:31:30 +00:00
Amine Khaldi 0c5dee7f52 [SMDLL]
* Include NDK headers on-demand.
* Introduce a PCH.

svn path=/trunk/; revision=53234
2011-08-14 17:17:02 +00:00
Amine Khaldi b27131c180 [SAMLIB]
* Include NDK headers on-demand.
* Introduce a PCH.

svn path=/trunk/; revision=53233
2011-08-14 16:59:43 +00:00
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