Commit e0399f6c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

In Netbios(),

- set ncb_retcode and ncb_cmd_cplt for NCB_ADDNAME - always make sure adapters have been enumerated.
parent 6ab1bc96
......@@ -793,21 +793,23 @@ UCHAR WINAPI Netbios(PNCB ncb)
if (cmd == NCBENUM)
ncb->ncb_retcode = ncb->ncb_cmd_cplt = ret = nbEnum(ncb);
else if (cmd == NCBADDNAME)
{
FIXME("NCBADDNAME: stub, returning success");
ncb->ncb_retcode = ncb->ncb_cmd_cplt = ret = NRC_GOODRET;
}
else
{
NetBIOSAdapter *adapter = nbGetAdapter(ncb->ncb_lana_num);
NetBIOSAdapter *adapter;
/* Apps not specifically written for WinNT won't do an NCBENUM first,
* so make sure the table has been enumerated at least once
*/
if (!gNBTable.enumerated)
nbInternalEnum();
adapter = nbGetAdapter(ncb->ncb_lana_num);
if (!adapter)
{
if (cmd == NCBRESET || cmd == NCBADDNAME)
{
if (cmd == NCBADDNAME)
FIXME("NCBADDNAME: stub, returning success");
ret = NRC_GOODRET;
}
else
ret = NRC_BRIDGE;
}
ret = NRC_BRIDGE;
else
{
if (adapter->shuttingDown)
......
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