Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic error checking to create_directory in r_renderer_c::DoScreenshot to prevent crash #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Paliak
Copy link

@Paliak Paliak commented Aug 19, 2024

Fixes PathOfBuildingCommunity/PathOfBuilding#7534

In some environments POB may not have the permissions to create a new folder. This causes the current call to create_directory to throw an exception, which is not handled, causing a crash. This commit implements a basic check for error code of create_directory with an appropriate log message.

In some envirements POB may not have the permissions to create a new folder.
This causes the current call to create_directory to throw an exception which is not handled causing a crash.
This commit implements a check for error code of create_directory with an apropriate log message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PoB closes (crashes?) when I take a screenshot (LeftWin+PrtScr)
1 participant