Clear last error on all successful requests.

This commit is contained in:
Alexandre Julliard 1999-01-31 15:06:28 +00:00
parent 73e6d8cd40
commit d757fc60bb
1 changed files with 2 additions and 5 deletions

View File

@ -161,11 +161,7 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd,
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 @@ static unsigned int CLIENT_WaitReply_v( int *len, int *passed_fd,
remaining -= len;
}
SetLastError( head.type );
return head.type; /* error code */
}