projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Sync up to trunk r55544.
[reactos.git]
/
ntoskrnl
/
io
/
iomgr
/
device.c
diff --git
a/ntoskrnl/io/iomgr/device.c
b/ntoskrnl/io/iomgr/device.c
index
44a7a9b
..
e73f989
100644
(file)
--- a/
ntoskrnl/io/iomgr/device.c
+++ b/
ntoskrnl/io/iomgr/device.c
@@
-486,7
+486,7
@@
IopDereferenceDeviceObject(IN PDEVICE_OBJECT DeviceObject,
ASSERT(DeviceObject->ReferenceCount);
/* Dereference the device */
-
DeviceObject->ReferenceCount--
;
+
InterlockedDecrement(&DeviceObject->ReferenceCount)
;
/*
* Check if we can unload it and it's safe to unload (or if we're forcing