diff options
author | Werner Koch <[email protected]> | 2023-06-09 11:46:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-07-05 09:13:20 +0000 |
commit | 51e44da6faeb842211636fb72b020edd8fb44227 (patch) | |
tree | 797bf232f37fab94dab666858b8396117bf235df | |
parent | gpg: Set default expiration date to 3 years. (diff) | |
download | gnupg-51e44da6faeb842211636fb72b020edd8fb44227.tar.gz gnupg-51e44da6faeb842211636fb72b020edd8fb44227.zip |
w32: Map ERROR_FILE_INVALID to EIO.
* common/sysutils.c (map_w32_to_errno): Add mapping.
--
We see this error sometimes when writing to an USB connected disk.
-rw-r--r-- | common/sysutils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index 5f54ae155..2af4b5cc9 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -244,6 +244,9 @@ map_w32_to_errno (DWORD w32_err) case ERROR_ALREADY_EXISTS: return EEXIST; + case ERROR_FILE_INVALID: + return EIO; + /* This mapping has been taken from reactOS. */ case ERROR_TOO_MANY_OPEN_FILES: return EMFILE; case ERROR_ARENA_TRASHED: return ENOMEM; |