This is an archive of the discontinued LLVM Phabricator instance.

[clang] [DirectoryWatcher] Remove leading \\?\ from GetFinalPathNameByHandleW
ClosedPublic

Authored by mstorsjo on Nov 5 2021, 4:46 AM.

Details

Summary

This is needed for the paths to work when using forward slashes;
this fixes the DirectoryWatcherTests unit tests.

Also allocate missing space for the null terminator, which seems to
have been missing all along (writing the terminator out of bounds).

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Nov 5 2021, 4:46 AM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 4:46 AM
aaron.ballman accepted this revision.Nov 8 2021, 9:39 AM

LGTM, though I'd appreciate if you'd fix the clang-format issues when landing.

This revision is now accepted and ready to land.Nov 8 2021, 9:39 AM
This revision was landed with ongoing or failed builds.Nov 8 2021, 12:22 PM
This revision was automatically updated to reflect the committed changes.