mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:46:05 +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))
|
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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue