Allow NCBRESET and NCBADDNAME to work even if there are no adapters.

This commit is contained in:
Jon Griffiths 2004-11-30 17:26:22 +00:00 committed by Alexandre Julliard
parent 8660795a80
commit 5685659d75
1 changed files with 10 additions and 1 deletions

View File

@ -798,7 +798,16 @@ UCHAR WINAPI Netbios(PNCB ncb)
NetBIOSAdapter *adapter = nbGetAdapter(ncb->ncb_lana_num);
if (!adapter)
ret = NRC_BRIDGE;
{
if (cmd == NCBRESET || cmd == NCBADDNAME)
{
if (cmd == NCBADDNAME)
FIXME("NCBADDNAME: stub, returning success");
ret = NRC_GOODRET;
}
else
ret = NRC_BRIDGE;
}
else
{
if (adapter->shuttingDown)