Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make oError:osCode return 2 on all platforms when an invalid filename is passed #347

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 1 addition & 0 deletions src/rtl/fserr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading