mirror of
https://github.com/digarok/gsplus.git
synced 2024-06-14 18:29:40 +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);
|
word16 terr = host_get_file_info(path, &fi);
|
||||||
if (terr) return terr;
|
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) {
|
if (fi.storage_type == 0x0f || fi.storage_type == 0x0d) {
|
||||||
unsigned blocks;
|
unsigned blocks;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user