FileTest
FileTest copied to clipboard
UI usability improvements
This pull request fixes two minor UI issues:
- If the user makes a typo when trying to open a file by ID (for example, by providing the wrong number of digits), FileTest aborts processing (returning
NULL
handle) while still reportingSTATUS_SUCCESS
. This behavior can be very confusing, so I added an indication for incorrect input. - Querying extended attributes on a file that doesn't have them is supposed to display an empty list. However, due to an optimization, if
NtQueryInformationFile
returnsFileEaInfo.EaSize
as 0, FileTest skips updating the UI. This can result in showing outdated information, so I added an explicit check that clears the list when there are no items to display.
I made a new branch LZ_ImprovementsUI. Few comments:
- I reworked the
OnQueryEa()
function. - When there are no extended attributes, NtQueryEaFile returns STATUS_NO_EAS_ON_FILE.
It should be sufficient.