From 5685659d75e6afb0e7debacb2723128c207f5e8b Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Tue, 30 Nov 2004 17:26:22 +0000 Subject: [PATCH] Allow NCBRESET and NCBADDNAME to work even if there are no adapters. --- dlls/netapi32/netbios.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/netapi32/netbios.c b/dlls/netapi32/netbios.c index b0793bf27e0..ff7dc10399e 100644 --- a/dlls/netapi32/netbios.c +++ b/dlls/netapi32/netbios.c @@ -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) -- 2.11.4.GIT