https://git.reactos.org/?p=reactos.git;a=commitdiff;h=12c70fb4cf17ab6a6d7a246eb210e88f54546b20

commit 12c70fb4cf17ab6a6d7a246eb210e88f54546b20
Author:     Hervé Poussineau <[email protected]>
AuthorDate: Sun Mar 31 08:39:22 2019 +0200
Commit:     Hervé Poussineau <[email protected]>
CommitDate: Mon Apr 1 11:38:32 2019 +0200

    [UDFS] Really use 'logical or' when meant to
    
    'binary or' was also working, but it is less clear.
---
 drivers/filesystems/udfs/Include/wcache_lib.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/filesystems/udfs/Include/wcache_lib.cpp 
b/drivers/filesystems/udfs/Include/wcache_lib.cpp
index b00dc50357..e23ae295de 100644
--- a/drivers/filesystems/udfs/Include/wcache_lib.cpp
+++ b/drivers/filesystems/udfs/Include/wcache_lib.cpp
@@ -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) ||

Reply via email to