From 57be18d1009b6ee1c2f431e93d24a1c4f1e92145 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Fri, 1 Dec 2023 13:14:45 +0100 Subject: [PATCH] 2023-12-01 11:00 UTC+0100 Phil Krylov (phil a t krylov.eu) * src/rtl/fserr.c * Mapped ERROR_INVALID_NAME on Windows to DOS error 2. Makes hbtest pass on Windows. --- ChangeLog.txt | 5 +++++ src/rtl/fserr.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 1eda723153..457ae9d9ca 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,11 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2023-12-01 11:00 UTC+0100 Phil Krylov (phil a t krylov.eu) + * src/rtl/fserr.c + * Mapped ERROR_INVALID_NAME on Windows to DOS error 2. + Makes hbtest pass on Windows. + 2023-11-30 22:36 UTC+0100 Phil Krylov (phil a t krylov.eu) * src/3rd/Makefile - src/3rd/tiff/ diff --git a/src/rtl/fserr.c b/src/rtl/fserr.c index 222ccb8264..7171d9ef17 100644 --- a/src/rtl/fserr.c +++ b/src/rtl/fserr.c @@ -128,6 +128,7 @@ static HB_ERRCODE hb_WinToDosError( DWORD dwError ) { case ERROR_PRIVILEGE_NOT_HELD: case ERROR_ALREADY_EXISTS: return 5; + case ERROR_INVALID_NAME: case ERROR_FILE_NOT_FOUND: return 2; case ERROR_PATH_NOT_FOUND: return 3; case ERROR_TOO_MANY_OPEN_FILES: return 4;