mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 06:52:07 +00:00
- Fix GCC 4.1.2 build. Patch by Usurp.
svn path=/trunk/; revision=25122
This commit is contained in:
parent
204be1a566
commit
37d0a75dc4
1 changed files with 3 additions and 3 deletions
|
@ -1000,7 +1000,7 @@ IopDeleteFile(IN PVOID ObjectBody)
|
|||
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 @@ IoCreateStreamFileObjectEx(IN PFILE_OBJECT FileObject OPTIONAL,
|
|||
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 @@ IoCreateStreamFileObjectLite(IN PFILE_OBJECT FileObject OPTIONAL,
|
|||
if (DeviceObject->Vpb)
|
||||
{
|
||||
/* Reference it */
|
||||
InterlockedIncrement(&DeviceObject->Vpb->ReferenceCount);
|
||||
InterlockedIncrement((PLONG)&DeviceObject->Vpb->ReferenceCount);
|
||||
}
|
||||
|
||||
/* Return the file object */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue