| commit | d757fc60bb6843d12d9fe4d889bb0e48201e9ad6 | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Sun Jan 31 15:06:28 1999 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Sun Jan 31 15:06:28 1999 +0000 |
| tree | 26910b811418082a2a31106455c1bbd755c91b3f | |
| parent | 73e6d8cd409c1fdd5a7497b96a8003106191d9c5 [diff] |
Clear last error on all successful requests.
diff --git a/scheduler/client.c b/scheduler/client.c index 9178152d..55d73eb 100644 --- a/scheduler/client.c +++ b/scheduler/client.c
@@ -161,11 +161,7 @@ pass_fd = cmsg.fd; #endif - if (head.type != ERROR_SUCCESS) - { - SetLastError( head.type ); - } - else if (passed_fd) + if (passed_fd) { *passed_fd = pass_fd; pass_fd = -1; @@ -187,6 +183,7 @@ remaining -= len; } + SetLastError( head.type ); return head.type; /* error code */ }