win32
The new runtime has parameter checking, and this one would cause NetHack pop up a dialog and die.
This commit is contained in:
+2
-1
@@ -629,7 +629,8 @@ really_close()
|
|||||||
lftrack.nethack_thinks_it_is_open = FALSE;
|
lftrack.nethack_thinks_it_is_open = FALSE;
|
||||||
lftrack.fd = -1;
|
lftrack.fd = -1;
|
||||||
lftrack.oflag = 0;
|
lftrack.oflag = 0;
|
||||||
(void)_close(fd);
|
if (fd != -1)
|
||||||
|
(void)_close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user