Commit d757fc60 authored by Alexandre Julliard's avatar Alexandre Julliard

Clear last error on all successful requests.

parent 73e6d8cd
...@@ -161,11 +161,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd, ...@@ -161,11 +161,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd,
pass_fd = cmsg.fd; pass_fd = cmsg.fd;
#endif #endif
if (head.type != ERROR_SUCCESS) if (passed_fd)
{
SetLastError( head.type );
}
else if (passed_fd)
{ {
*passed_fd = pass_fd; *passed_fd = pass_fd;
pass_fd = -1; pass_fd = -1;
...@@ -187,6 +183,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd, ...@@ -187,6 +183,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd,
remaining -= len; remaining -= len;
} }
SetLastError( head.type );
return head.type; /* error code */ return head.type; /* error code */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment