diff options
author | Patrik Nyblom <[email protected]> | 2013-08-22 17:17:03 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2013-08-23 17:03:20 +0200 |
commit | 7204e78d8d16e41769cfd4b7b4051545052c335e (patch) | |
tree | dc09cff7ff3de3b93ec0016dbed573d4abbd6bbe /erts/emulator | |
parent | c82784a8fc24ede2760cc96b5f5d6596684ba7e2 (diff) | |
download | otp-7204e78d8d16e41769cfd4b7b4051545052c335e.tar.gz otp-7204e78d8d16e41769cfd4b7b4051545052c335e.tar.bz2 otp-7204e78d8d16e41769cfd4b7b4051545052c335e.zip |
Initialize errno properly in win32 efile_may_openfile
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/drivers/win32/win_efile.c | 1 |
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); } |