Author: peterw Date: Mon Dec 11 01:39:21 2006 New Revision: 25122
URL: http://svn.reactos.org/svn/reactos?rev=25122&view=rev Log: - Fix GCC 4.1.2 build. Patch by Usurp.
Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?re... ============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/file.c (original) +++ trunk/reactos/ntoskrnl/io/iomgr/file.c Mon Dec 11 01:39:21 2006 @@ -1000,7 +1000,7 @@ if ((Vpb) && !(FileObject->Flags & FO_DIRECT_DEVICE_OPEN)) { /* Dereference the VPB before the close */ - InterlockedDecrement(&Vpb->ReferenceCount); + InterlockedDecrement((PLONG)&Vpb->ReferenceCount); }
/* Check if the FS will never disappear by itself */ @@ -1956,7 +1956,7 @@ if (DeviceObject->Vpb) { /* Reference it */ - InterlockedIncrement(&DeviceObject->Vpb->ReferenceCount); + InterlockedIncrement((PLONG)&DeviceObject->Vpb->ReferenceCount); }
/* Check if the caller wants the handle */ @@ -2049,7 +2049,7 @@ if (DeviceObject->Vpb) { /* Reference it */ - InterlockedIncrement(&DeviceObject->Vpb->ReferenceCount); + InterlockedIncrement((PLONG)&DeviceObject->Vpb->ReferenceCount); }
/* Return the file object */