Commit 9f8ae26c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

netapi32: Fix dead stores.

parent 6e336fe3
......@@ -415,11 +415,8 @@ static BOOL NetBTFindNameAnswerCallback(void *pVoid, WORD answerCount,
if (queryData->cacheEntry)
queryData->cacheEntry->numAddresses = 0;
else
{
ret = FALSE;
queryData->ret = NRC_OSRESNOTAV;
}
}
if (rLen == 6 && queryData->cacheEntry &&
queryData->cacheEntry->numAddresses < answerCount)
{
......@@ -850,9 +847,9 @@ static UCHAR NetBTAstat(void *adapt, PNCB ncb)
astat->max_sess_pkt_size = 0xffff;
astat->xmit_success = adapter->xmit_success;
astat->recv_success = adapter->recv_success;
}
ret = NRC_GOODRET;
}
}
else
ret = NetBTAstatRemote(adapter, ncb);
TRACE("returning 0x%02x\n", ret);
......@@ -1183,6 +1180,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
* message header. */
NetBIOSHangupSession(ncb);
ret = NRC_SABORT;
goto error;
}
else if (buffer[0] != NBSS_MSG)
{
......@@ -1190,6 +1188,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
FIXME("Received unexpected session msg type %d\n", buffer[0]);
NetBIOSHangupSession(ncb);
ret = NRC_SABORT;
goto error;
}
else
{
......@@ -1199,6 +1198,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
FIXME("Received a message that's too long for my taste\n");
NetBIOSHangupSession(ncb);
ret = NRC_SABORT;
goto error;
}
else
{
......@@ -1226,6 +1226,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
adapter->recv_success++;
}
}
error:
TRACE("returning 0x%02x\n", ret);
return ret;
}
......
......@@ -637,7 +637,7 @@ static UCHAR nbInternalHangup(NetBIOSAdapter *adapter, NetBIOSSession *session)
EnterCriticalSection(&adapter->cs);
memset(session, 0, sizeof(NetBIOSSession));
LeaveCriticalSection(&adapter->cs);
return NRC_GOODRET;
return ret;
}
static UCHAR nbHangup(NetBIOSAdapter *adapter, const NCB *ncb)
......
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