Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

validator.exe and moduleinfotool.exe Debug Version Throws Abort When Checking for Symlink [VS2019] #145

Closed
@TroikaTronix

Description

@TroikaTronix

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.

Image

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;#else

should 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;}#else

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp