- Notifications
You must be signed in to change notification settings - Fork197
Closed
Description
EDIT: I should have indicated that this specific issue occurs with VS2019 on Windows. I have not tried it with VS2022.
When checking for a symlink, the Debug version of validator.exe or moduleinfotool.exe throws an abort message as shown below and crashes.

This is because, in the Debug version, if the path passed to filesystem::is_symlink is not a symlink, an exception is thrown.
To address this issue, this code in module_win32.cpp
bool isFolderSymbolicLink (const filesystem::path& p){#if USE_FILESYSTEMif (/*filesystem::exists (p) &&*/ filesystem::is_symlink (p))return true;#elseshould be updated to enclose the check in a try/catch block
bool isFolderSymbolicLink (const filesystem::path& p){#if USE_FILESYSTEMtry {if (/*filesystem::exists (p) &&*/ filesystem::is_symlink (p))return true;} catch (...) {return false;}#elseMetadata
Metadata
Assignees
Labels
No labels