1 ////////////////////////////////////////////////////////////////////
2 // Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
3 // All rights reserved
4 // This file was released under the GPLv2 on June 2015.
5 ////////////////////////////////////////////////////////////////////
6 
7 
8 VOID
UDFSetModified(IN PVCB Vcb)9 UDFSetModified(
10     IN PVCB        Vcb
11     )
12 {
13     if(UDFInterlockedIncrement((PLONG)&(Vcb->Modified)) & 0x80000000)
14         Vcb->Modified = 2;
15 } // end UDFSetModified()
16 
17 VOID
UDFPreClrModified(IN PVCB Vcb)18 UDFPreClrModified(
19     IN PVCB        Vcb
20     )
21 {
22     Vcb->Modified = 1;
23 } // end UDFPreClrModified()
24 
25 VOID
UDFClrModified(IN PVCB Vcb)26 UDFClrModified(
27     IN PVCB        Vcb
28     )
29 {
30     UDFPrint(("ClrModified\n"));
31     UDFInterlockedDecrement((PLONG)&(Vcb->Modified));
32 } // end UDFClrModified()
33 
34