mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
3f70f94b0a
This fixes the verbosity observed in #5371 (review): A quick summary: FileReferenceNumber doesn't have an operator== for integers, but C++ gets clever and implicitly provides one because of the FileReferenceNumber(DWORDLONG) constructor. This ends up providing the wrong implicit comparison behavior, resulting in the branch below always being taken (and consequently erroring, since no old name record is actually present). This fix changes the comparison to drive_letter, which will always be compared correctly and will only be 0U in the case we want to test. |
||
---|---|---|
.. | ||
benchmarks | ||
darwin | ||
linux | ||
tests | ||
windows | ||
BUCK | ||
CMakeLists.txt | ||
events.cpp | ||
pathset.h |