projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTOSKRNL]
[reactos.git]
/
reactos
/
ntoskrnl
/
io
/
pnpmgr
/
pnpmgr.c
diff --git
a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
index
f0f7a17
..
e841889
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
@@
-1420,7
+1420,7
@@
IopActionInterrogateDeviceStack(PDEVICE_NODE DeviceNode,
sizeof(ULONG));
/* Set 'UINumber' value */
sizeof(ULONG));
/* Set 'UINumber' value */
- if (DeviceCapabilities.UINumber !=
(ULONG)-1
)
+ if (DeviceCapabilities.UINumber !=
MAXULONG
)
{
RtlInitUnicodeString(&ValueName, L"UINumber");
Status = ZwSetValueKey(InstanceKey,
{
RtlInitUnicodeString(&ValueName, L"UINumber");
Status = ZwSetValueKey(InstanceKey,
@@
-1893,7
+1893,7
@@
IopActionConfigureChildServices(PDEVICE_NODE DeviceNode,
RtlInitUnicodeString(&ClassGUID, NULL);
QueryTable[0].Name = L"Service";
RtlInitUnicodeString(&ClassGUID, NULL);
QueryTable[0].Name = L"Service";
- QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT
| RTL_QUERY_REGISTRY_REQUIRED
;
+ QueryTable[0].Flags = RTL_QUERY_REGISTRY_DIRECT;
QueryTable[0].EntryContext = Service;
QueryTable[1].Name = L"ClassGUID";
QueryTable[0].EntryContext = Service;
QueryTable[1].Name = L"ClassGUID";
@@
-3078,7
+3078,7
@@
IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
case DevicePropertyAddress:
/* Query the device caps */
Status = IopQueryDeviceCapabilities(DeviceNode, &DeviceCaps);
case DevicePropertyAddress:
/* Query the device caps */
Status = IopQueryDeviceCapabilities(DeviceNode, &DeviceCaps);
- if (NT_SUCCESS(Status) && (DeviceCaps.Address !=
(ULONG)-1
))
+ if (NT_SUCCESS(Status) && (DeviceCaps.Address !=
MAXULONG
))
{
/* Return length */
*ResultLength = sizeof(ULONG);
{
/* Return length */
*ResultLength = sizeof(ULONG);
@@
-3236,7
+3236,7
@@
IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
* always contains the enumerator name followed by \\ */
Ptr = wcschr(DeviceNode->InstancePath.Buffer, L'\\');
ASSERT(Ptr);
* always contains the enumerator name followed by \\ */
Ptr = wcschr(DeviceNode->InstancePath.Buffer, L'\\');
ASSERT(Ptr);
- Length = (Ptr - DeviceNode->InstancePath.Buffer
+ 1
) * sizeof(WCHAR);
+ Length = (Ptr - DeviceNode->InstancePath.Buffer) * sizeof(WCHAR);
Data = DeviceNode->InstancePath.Buffer;
break;
Data = DeviceNode->InstancePath.Buffer;
break;