Commit graph

46466 commits

Author SHA1 Message Date
Rafal Harabien 77760f12f6 [APITESTS]
- Add more Rectangle function tests
- Improve ScrollDC tests

svn path=/trunk/; revision=52045
2011-06-01 18:20:51 +00:00
Rafal Harabien d159b215ee [NTOSKRNL]
- Bugcheck if ExFreePoolWithTag is called with wrong tag

svn path=/trunk/; revision=52044
2011-06-01 18:16:52 +00:00
Rafal Harabien 2861515d78 [NTOSKRNL]
- Use tags when allocation and freeing memory and define them in tag.h
- Fix some wrongly used tags when freeing
- Our new memory manager doesn't check tags when ExFreePoolWithTag is used. It will be fixed after testing

svn path=/trunk/; revision=52043
2011-06-01 13:39:36 +00:00
Rafal Harabien c2e7b8b976 [NTOSKRNL]
- Acquire spinlock when accessing SymbolFileListHead

svn path=/trunk/; revision=52041
2011-06-01 13:16:49 +00:00
Timo Kreuzer 29a7aa1288 [CRT]
in _flsbuf, always reset _cnt to 0 and don't allocate/use a buffer when _IONBUF is set. Fixes a regression in msvcrt_winetest file.

See issue #5829 for more details.

svn path=/trunk/; revision=52040
2011-06-01 12:08:02 +00:00
Johannes Anderwald 80f8e1b66c [NTOS]
- Fix bug in PnpRegSzToString. The caller expects the result length to be the length of the string in bytes, not the string length
- Introduced in rev 46690

svn path=/trunk/; revision=52037
2011-06-01 09:59:54 +00:00
Cameron Gutman 9048ea9dcf [NTOSKRNL]
- Remove the device node when the device object is destroyed to prevent PnP manager from crashing when manipulating device nodes with device objects that no longer exist
- Move removal notifications into IopRemoveDevice and call it from IopPrepareDeviceForRemoval and IoRequestDeviceEject to manage all of the removal relations for each device removed

svn path=/trunk/; revision=52034
2011-06-01 06:22:54 +00:00
Cameron Gutman 47328a7510 [NTOSKRNL]
- Fix a bug in device removal and ejection which caused the request to fail when EjectionRelations or RemovalRelations was not handled by a driver in the stack

svn path=/trunk/; revision=52033
2011-06-01 01:06:35 +00:00
Rafal Harabien f1ad369297 [INF]
- Really add disk.inf. Forgotten in r51978

svn path=/trunk/; revision=52032
2011-05-31 23:19:07 +00:00
Cameron Gutman b22890ae01 [NTOSKRNL]
- Remove an extra semicolon
- Dedicated to encoded

svn path=/trunk/; revision=52031
2011-05-31 23:04:59 +00:00
Rafal Harabien eac5ee241d [CMAKE]
- sys-stubs.S depends now on w32ksvc.h. Unfortunately CMake isn't smart enough to find it automatically

svn path=/trunk/; revision=52030
2011-05-31 21:05:03 +00:00
Cameron Gutman 80d7517cde [NTOSKRNL]
- Implement IopRemoveDevice and IopStopDevice
- Do a graceful remove before installing new drivers (like Windows does)
- Debug log warnings abound (don't be alarmed ;)) because drivers aren't used to receiving IRP_MN_QUERY_REMOVE_DEVICE, IRP_MN_REMOVE_DEVICE and IRP_MN_QUERY_PNP_DEVICE_STATE from our (formly) crippled PnP manager

svn path=/trunk/; revision=52029
2011-05-31 19:34:08 +00:00
Cameron Gutman 3d472cf72f [PCIIDEX]
- Handle IRP_MN_QUERY_REMOVE_DEVICE
- Handle IRP_MN_QUERY_PNP_DEVICE_STATE to report that we are not disableable to the PnP manager so we don't get removed during driver installation

svn path=/trunk/; revision=52028
2011-05-31 19:29:22 +00:00
Cameron Gutman 200cdb6daf [NTOSKRNL]
- Set the DNF_DISABLED flag if a driver returns with the HardwareDisabled flag set to true (but only BEFORE starting the device)
- Don't try to start a device with the DNF_DISABLED flag set
- Send IRP_MN_QUERY_CAPABILITIES (again) and IRP_MN_QUERY_PNP_DEVICE_STATE after the device has started
- Write the UINumber and Capabilities registry entries in IopQueryDeviceCapabilities so they will be updated after every IRP_MN_QUERY_CAPABILITIES is sent
- Set the DNUF_DONT_SHOW_IN_UI flag in response to the NoDisplayInUI flag set in DEVICE_CAPABILITIES or PNP_DEVICE_DONT_DISPLAY_IN_UI set after sending IRP_MN_QUERY_PNP_DEVICE_STATE
- Set DNUF_NBOT_DISABLEABLE if PNP_DEVICE_NOT_DISABLEABLE is set after sending IRP_MN_QUERY_PNP_DEVICE_STATE
- Remove duplicate code
- Fix sending GUID_DEVICE_ARRIVAL (patch by Eric Kohl)
- IRPs sent to PnP devices on enumeration and start are now completely compatible with Windows XP/2003/Vista

svn path=/trunk/; revision=52026
2011-05-31 18:11:40 +00:00
Cameron Gutman d6680bc1fa [I8042PRT]
- Don't ASSERT(FALSE) when receiving an unknown PNP IRP

svn path=/trunk/; revision=52025
2011-05-31 18:02:49 +00:00
Timo Kreuzer aebc59bf83 fix build
svn path=/trunk/; revision=52024
2011-05-31 17:50:55 +00:00
Timo Kreuzer 94ce2dcf66 [CRT]
Rewrite _splitpath.
See issue #6244 for more details.

svn path=/trunk/; revision=52023
2011-05-31 17:29:49 +00:00
Timo Kreuzer 3e584471ab [MSVCRT_APITEST]
Add tests for splitpath

svn path=/trunk/; revision=52022
2011-05-31 17:26:30 +00:00
Cameron Gutman 48c9bead3d [NTOSKRNL]
- Implement IoTranslateBusAddress

svn path=/trunk/; revision=52019
2011-05-30 22:27:28 +00:00
Rafal Harabien 57bc8f07bf [USER32]
- Use DISPLAY_DEVICEW instead of assuming DISPLAY_DEVICE is in unicode

svn path=/trunk/; revision=52016
2011-05-30 21:34:10 +00:00
Rafal Harabien 8dbd3c5e73 [NTOSKRNL]
- Declare function without arguments with VOID keyword
- Improve rbuild file

svn path=/trunk/; revision=52015
2011-05-30 21:26:33 +00:00
Cameron Gutman e26e8e7106 [AFD]
- Launch a new listen IRP right after the current one completes instead of waiting until the current pending connection is accepted
- Reduces the chance of AFD missing two connection requests that are issued very close together and increases network performance by allowing our connection queue to do its job

svn path=/trunk/; revision=52013
2011-05-30 17:27:53 +00:00
Kamil Hornicek 4e0877c6fb [WINED3D|DDRAW|D3D8|D3D9]
Sync to Wine 1.3.21

svn path=/trunk/; revision=52009
2011-05-30 15:27:19 +00:00
Rafal Harabien 6486187cdb [ROSTESTS]
- Declare functions with 0 arguments using VOID keyword. In C it matters
- Add imagehlp winetest to CMake build

svn path=/trunk/; revision=52006
2011-05-30 11:40:58 +00:00
Cameron Gutman 6c70b6dcd9 [NTOSKRNL]
- Implement sending GUID_TARGET_DEVICE_QUERY_REMOVE and GUID_TARGET_DEVICE_REMOVE_COMPLETE notifications
- Fix sending EventCategoryTargetDeviceChange notifications
- Remove some incorrect checks (IRP_MN_START_DEVICE CAN be called for a device that is already "started")
- Check the final status of the IRP_MN_START_DEVICE request sent after resource rebalancing and send IRP_MN_REMOVE_DEVICE if it fails

svn path=/trunk/; revision=52003
2011-05-30 04:15:27 +00:00
Roel Messiant 9abb0c1c3b [NTOSKRNL]
- Simplify remove lock tracking block list handling.
- Correct check for unlimited locking time being allowed.
- Eliminate use-after-free after removing a tracking block.

svn path=/trunk/; revision=52002
2011-05-29 22:29:10 +00:00
Olaf Siejka 66b0ee485c Converting POLISH localisation strings to UTF-8. Part 3/4:
- dll/win32 and dll/shellext converted
- currently, only shell32 is left, due to incoming change to new version, and kernel32 - need to research how it should be done.
Tested on rbuild/cmake

svn path=/trunk/; revision=52000
2011-05-29 21:43:37 +00:00
Cameron Gutman 944ccbbe33 [NTOSKRNL]
- Fix a reference leak which prevented driver objects passed to IoRegisterPlugPlayNotification from being able to unload after the notification was unregistered
- Fix a non-paged pool leak

svn path=/trunk/; revision=51997
2011-05-29 16:44:34 +00:00
Eric Kohl 51945fb53c [SETUPAPI]
- Add stubs for CM_Set_Class_Registry_PropertyA/W.
- Add support for missing properties to CM_Set_DevNode_Registry_Property_ExA/W.

svn path=/trunk/; revision=51996
2011-05-29 16:18:22 +00:00
Eric Kohl 188384e873 [UMPNPMGR]
Implement PNP_GetClassRegProp and fix a little bug in PNP_GetDeviceRegProp.

svn path=/trunk/; revision=51995
2011-05-29 15:58:49 +00:00
Matthias Kupfer 6d0de91d48 Edijs Kolesnikovics
<
terminedijs AT yahoo DOT com>

- Show GPL licence from beginning
- See issue #6278 for details.

svn path=/trunk/; revision=51993
2011-05-29 12:55:07 +00:00
Amine Khaldi 374a063487 [CMAKE]
* Add missing dependency.

svn path=/trunk/; revision=51990
2011-05-29 09:55:23 +00:00
Eric Kohl 0a2651adde [UMPNPMGR]
- Implement PNP_SetClassRegProp.
- Fix a typo in the PNP_SetClassRegProp declaration in pnp.idl.

svn path=/trunk/; revision=51988
2011-05-28 22:15:38 +00:00
Amine Khaldi 4b796ad26c [CMAKE]
* Improve reactos.cab creation a bit: create it using a custom command instead of a custom target.. marking it as output this way ensures a proper cleanup with make clean and co.

svn path=/trunk/; revision=51987
2011-05-28 22:03:07 +00:00
Eric Kohl 971a0b7b63 [UMPNPMGR]
Add support for missing properties to PNP_SetDeviceRegProp and fix a property issue in PNP_GetDeviceRegProp.

svn path=/trunk/; revision=51982
2011-05-28 19:08:20 +00:00
Roel Messiant 91ed75b1f7 [NTOSKRNL]
- Don't treat the head of the tracking block list as a list entry.

svn path=/trunk/; revision=51981
2011-05-28 17:56:07 +00:00
Eric Kohl 21803c4ad1 [UMPNPMGR]
Add support for missing properties to PNP_GetDeviceRegProp and improve error handling.

svn path=/trunk/; revision=51980
2011-05-28 17:35:51 +00:00
Eric Kohl 9594c14d5f Add disk.inf to source file list.
svn path=/trunk/; revision=51978
2011-05-28 16:19:14 +00:00
Eric Kohl fb4188594e Add an .inf file for disk drives.
See issue #5111 for more details.

svn path=/trunk/; revision=51976
2011-05-28 16:12:28 +00:00
Cameron Gutman 2a77b92692 [UNPNPMGR]
- Simplify and fix a few bugs in the ClassGUID reading code

svn path=/trunk/; revision=51974
2011-05-28 13:42:06 +00:00
James Tabor e878e6c8fc [ScreenSaver]
- Fixed screen saver load and save plus the registry problems.

svn path=/trunk/; revision=51973
2011-05-28 11:39:36 +00:00
James Tabor 787984bc0f - No need to do extra work when the process starts.
svn path=/trunk/; revision=51972
2011-05-28 00:32:15 +00:00
James Tabor 90e1322075 [Win32k]
- Get screen saver running. Need more work on WinLogon register issues and problems.
- Miscellaneous changes and cleanups.

svn path=/trunk/; revision=51971
2011-05-27 23:18:57 +00:00
Cameron Gutman 6b5280da8a [PCIIDE/PCIIDEX]
- Also update cmake files

svn path=/trunk/; revision=51970
2011-05-27 22:53:39 +00:00
Cameron Gutman 4b24374764 [USETUP]
- Load other driver sections from txtsetup.sif
- Enable a debug print
[TXTSETUP]
- Add PnP entries for storage devices
[PCIIDE/PCIIDEX]
- Add to bootcd
- Both usetup's PnP manager and the user-mode PnP manager now recognize PCI IDE channels

svn path=/trunk/; revision=51969
2011-05-27 22:35:05 +00:00
Cameron Gutman c963e3d148 [HDC]
- PCIIDE should be installed for each PCI IDE controller and UNIATA should be installed for each IDE channel
- Remove an extra comma in the compatible adapters entries

svn path=/trunk/; revision=51968
2011-05-27 22:27:37 +00:00
Cameron Gutman ceb022f8e1 [PCIIDEX]
- Don't report raw device support to allow the IDE channel driver (uniata) to take over control of the enumerated devices
- Ideally the PnP manager should deal with a driver collision like this but it doesn't currently

svn path=/trunk/; revision=51967
2011-05-27 22:06:43 +00:00
Cameron Gutman 3bff188bfc [NTOSKRNL]
- Add a special case in IopLoadServiceModule for 1st stage setup when we have no service entries so we can still load drivers
- Fixes an old regression with 1st stage PnP which now can load drivers again

svn path=/trunk/; revision=51966
2011-05-27 21:56:55 +00:00
Pierre Schweitzer 80d496143d [NTOSKRNL]
Fix struct size checking for debug remove locks.
Spotted by Roel

svn path=/trunk/; revision=51965
2011-05-27 21:21:36 +00:00
Cameron Gutman 5d2112a43b [UMPNPMGR]
- Determine whether the device is really installed by reading the ClassGUID key instead of looking at the device flags
- Add a debug print for device installation (shouldn't be too spammy except and will be helpful for hotplugging)
[USETUP]
- Reenable the 1st stage PnP manager

svn path=/trunk/; revision=51963
2011-05-27 20:50:17 +00:00