Skip to content

Commit

Permalink
Fixed an "and(&&) or(||)" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Aug 15, 2024
1 parent 8dab082 commit 2fff05b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aqvm/base/file/identifier/unix/identifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool AqvmBaseFileIdentifierUnix_IsEqual(
return false;
}

if (identifier1->st_dev == identifier2->st_dev ||
if (identifier1->st_dev == identifier2->st_dev &&
identifier1->st_ino == identifier2->st_ino) {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions aqvm/base/file/identifier/windows/identifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ bool AqvmBaseFileIdentifierWindows_IsEqual(
return false;
}

if (identifier1->dwVolumeSerialNumber == identifier2->dwVolumeSerialNumber ||
identifier1->nFileIndexHigh == identifier2->nFileIndexHigh ||
if (identifier1->dwVolumeSerialNumber == identifier2->dwVolumeSerialNumber &&
identifier1->nFileIndexHigh == identifier2->nFileIndexHigh &&
identifier1->nFileIndexLow == identifier2->nFileIndexLow) {
return true;
}
Expand Down

0 comments on commit 2fff05b

Please sign in to comment.