[UDFS] Really use 'logical or' when meant to
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 31 Mar 2019 06:39:22 +0000 (08:39 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 1 Apr 2019 09:38:32 +0000 (11:38 +0200)
'binary or' was also working, but it is less clear.

drivers/filesystems/udfs/Include/wcache_lib.cpp

index b00dc50..e23ae29 100644 (file)
@@ -1113,7 +1113,7 @@ WCacheUpdatePacket(
     // If we didn't read packet from media, we can't
     // perform comparison to assure that packet was really modified.
     // Thus, assume that it is modified in this case.
-    mod = !read | Cache->DoNotCompare;
+    mod = !read || Cache->DoNotCompare;
     Lba0 = Lba - firstLba;
     for(i=0; i<PSs; i++, Lba0++) {
         if( WCacheGetModFlag(block_array, Lba0) ||