- Fix GCC 4.1.2 build. Patch by Usurp.

svn path=/trunk/; revision=25122
This commit is contained in:
Peter Ward 2006-12-10 22:39:21 +00:00
parent 204be1a566
commit 37d0a75dc4

View file

@ -1000,7 +1000,7 @@ IopDeleteFile(IN PVOID ObjectBody)
if ((Vpb) && !(FileObject->Flags & FO_DIRECT_DEVICE_OPEN)) if ((Vpb) && !(FileObject->Flags & FO_DIRECT_DEVICE_OPEN))
{ {
/* Dereference the VPB before the close */ /* Dereference the VPB before the close */
InterlockedDecrement(&Vpb->ReferenceCount); InterlockedDecrement((PLONG)&Vpb->ReferenceCount);
} }
/* Check if the FS will never disappear by itself */ /* Check if the FS will never disappear by itself */
@ -1956,7 +1956,7 @@ IoCreateStreamFileObjectEx(IN PFILE_OBJECT FileObject OPTIONAL,
if (DeviceObject->Vpb) if (DeviceObject->Vpb)
{ {
/* Reference it */ /* Reference it */
InterlockedIncrement(&DeviceObject->Vpb->ReferenceCount); InterlockedIncrement((PLONG)&DeviceObject->Vpb->ReferenceCount);
} }
/* Check if the caller wants the handle */ /* Check if the caller wants the handle */
@ -2049,7 +2049,7 @@ IoCreateStreamFileObjectLite(IN PFILE_OBJECT FileObject OPTIONAL,
if (DeviceObject->Vpb) if (DeviceObject->Vpb)
{ {
/* Reference it */ /* Reference it */
InterlockedIncrement(&DeviceObject->Vpb->ReferenceCount); InterlockedIncrement((PLONG)&DeviceObject->Vpb->ReferenceCount);
} }
/* Return the file object */ /* Return the file object */