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

[Windows] Remove _wstat use in FileAccessWindows::open_internal #96840

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Sep 11, 2024

See #96812, _wstat is broken on MinGW/MSVCRT with long path.

The other use of _wstat is fixed by #74830

@bruvzg bruvzg added this to the 4.4 milestone Sep 11, 2024
@bruvzg bruvzg requested a review from a team as a code owner September 11, 2024 06:48
if (!S_ISREG(st.st_mode)) {
return ERR_FILE_CANT_OPEN;
}
if (path.ends_with(":\\") || path.ends_with(":")) {
Copy link
Member Author

@bruvzg bruvzg Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for whatever reason, drive root is not FILE_ATTRIBUTE_DIRECTORY.

@akien-mga akien-mga changed the title [Windows] Remove _wstat use in FileAccessWindows::open_internal [Windows] Remove _wstat use in FileAccessWindows::open_internal Sep 11, 2024
@akien-mga akien-mga merged commit e919470 into godotengine:master Sep 11, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants