server: Map file timeout error codes

André Hentschel nerv at
Mon Nov 11 15:26:02 CST 2013

it's quite easy to see the following message with disc encryption, on access virus scanning and trying to run something in wine:
wineserver: file_set_error() can't map error

sure it just hides the problem, but we might want to map it either i think.

 server/file.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/file.c b/server/file.c
index 94d3060..2ae12b0 100644
--- a/server/file.c
+++ b/server/file.c
@@ -617,6 +617,8 @@ void file_set_error(void)
     case EFBIG:     set_error( STATUS_SECTION_TOO_BIG ); break;
     case ENODEV:    set_error( STATUS_NO_SUCH_DEVICE ); break;
     case ENXIO:     set_error( STATUS_NO_SUCH_DEVICE ); break;
+    case ETIMEDOUT:
+    case ETIME:     set_error( STATUS_TIMEOUT ); break;
     case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break;

More information about the wine-patches mailing list