summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-17 15:28:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-17 15:28:09 (GMT)
commitff436137df3cce5d4e96e59c54a3f1211a3e8a33 (patch)
tree03c8e0e44bd23d644991f5b351ddb64e2a4d33b2
parent65007a4d02a35e26d92288bc5a20aa1bfde3696e (diff)
downloadtcl-ff436137df3cce5d4e96e59c54a3f1211a3e8a33.zip
tcl-ff436137df3cce5d4e96e59c54a3f1211a3e8a33.tar.gz
tcl-ff436137df3cce5d4e96e59c54a3f1211a3e8a33.tar.bz2
Fix [fab92486a1b05ba6f7cfe8677da95b9efb3beff0|fab92486a1]: Windows error 14 "Out of memory" mapping to Posix EFAULT "Bad address in system call argument" feels wrong
-rw-r--r--win/tclWinError.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinError.c b/win/tclWinError.c
index a74d2e2..c569d61 100644
--- a/win/tclWinError.c
+++ b/win/tclWinError.c
@@ -32,7 +32,7 @@ static CONST unsigned char errorTable[] = {
ENOEXEC, /* ERROR_BAD_FORMAT 11 */
EACCES, /* ERROR_INVALID_ACCESS 12 */
EINVAL, /* ERROR_INVALID_DATA 13 */
- EFAULT, /* ERROR_OUT_OF_MEMORY 14 */
+ ENOMEM, /* ERROR_OUT_OF_MEMORY 14 */
ENOENT, /* ERROR_INVALID_DRIVE 15 */
EACCES, /* ERROR_CURRENT_DIRECTORY 16 */
EXDEV, /* ERROR_NOT_SAME_DEVICE 17 */