Fix check for send_result in adder

master
Nick Krichevsky 2019-09-23 15:36:05 -04:00
parent 4cc75e59cf
commit 1b554408f9
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ void *adder(void *raw_mailbox_id) {
};
int send_result = SendMsg(0, &res_mesage);
if (send_result <= 0) {
if (send_result < 0) {
*ret_val = -1;
return ret_val;
}