aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/win32
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2013-08-22 17:17:03 +0200
committerPatrik Nyblom <[email protected]>2013-08-23 17:03:20 +0200
commit7204e78d8d16e41769cfd4b7b4051545052c335e (patch)
treedc09cff7ff3de3b93ec0016dbed573d4abbd6bbe /erts/emulator/drivers/win32
parentc82784a8fc24ede2760cc96b5f5d6596684ba7e2 (diff)
downloadotp-7204e78d8d16e41769cfd4b7b4051545052c335e.tar.gz
otp-7204e78d8d16e41769cfd4b7b4051545052c335e.tar.bz2
otp-7204e78d8d16e41769cfd4b7b4051545052c335e.zip
Initialize errno properly in win32 efile_may_openfile
Diffstat (limited to 'erts/emulator/drivers/win32')
-rw-r--r--erts/emulator/drivers/win32/win_efile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c
index be3d86a1d2..b36a103f8e 100644
--- a/erts/emulator/drivers/win32/win_efile.c
+++ b/erts/emulator/drivers/win32/win_efile.c
@@ -772,6 +772,7 @@ efile_may_openfile(Efile_error* errInfo, char *name) {
DWORD attr;
if ((attr = GetFileAttributesW(wname)) == INVALID_FILE_ATTRIBUTES) {
+ errno = ENOENT;
return check_error(-1, errInfo);
}