mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
8613230602
commit
51e44da6fa
1 changed files with 3 additions and 0 deletions
|
@ -244,6 +244,9 @@ map_w32_to_errno (DWORD w32_err)
|
||||||
case ERROR_ALREADY_EXISTS:
|
case ERROR_ALREADY_EXISTS:
|
||||||
return EEXIST;
|
return EEXIST;
|
||||||
|
|
||||||
|
case ERROR_FILE_INVALID:
|
||||||
|
return EIO;
|
||||||
|
|
||||||
/* This mapping has been taken from reactOS. */
|
/* This mapping has been taken from reactOS. */
|
||||||
case ERROR_TOO_MANY_OPEN_FILES: return EMFILE;
|
case ERROR_TOO_MANY_OPEN_FILES: return EMFILE;
|
||||||
case ERROR_ARENA_TRASHED: return ENOMEM;
|
case ERROR_ARENA_TRASHED: return ENOMEM;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue