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

Commit 661ec55

Browse files
committed
fix windows reg file
1 parent 4ec8097 commit 661ec55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/stdlib_system.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ int stdlib_exists(const char* path, int* stat){
9494
return type_unknown;
9595
}
9696

97-
if (attrs & FILE_ATTRIBUTE_NORMAL) type = type_regular_file;
97+
// It is not a directory or a symlink
98+
type = type_regular_file;
99+
98100
if (attrs & FILE_ATTRIBUTE_REPARSE_POINT) type = type_symlink;
99101
if (attrs & FILE_ATTRIBUTE_DIRECTORY) type = type_directory;
100102
#else

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /