mirror of
https://github.com/digarok/gsplus.git
synced 2025-04-17 16:37:24 +00:00
host mli - opening/closing a directory would close fd 0 (aka stdin).
This commit is contained in:
parent
b6406159bd
commit
e9e9fcfd59
@ -1048,6 +1048,11 @@ static int mli_open(unsigned dcb, const char *name, const char *path) {
|
||||
word16 terr = host_get_file_info(path, &fi);
|
||||
if (terr) return terr;
|
||||
|
||||
#if _WIN32
|
||||
file->h = INVALID_HANDLE_VALUE;
|
||||
#else
|
||||
file->fd = -1;
|
||||
#endif
|
||||
|
||||
if (fi.storage_type == 0x0f || fi.storage_type == 0x0d) {
|
||||
unsigned blocks;
|
||||
|
Loading…
x
Reference in New Issue
Block a user