https://git.reactos.org/?p=reactos.git;a=commitdiff;h=12c70fb4cf17ab6a6d7a2…
commit 12c70fb4cf17ab6a6d7a246eb210e88f54546b20
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Mar 31 08:39:22 2019 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
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) ||