This fixes Defiant not being able to connect to game servers in game.
That regressed because of the apparently accidental change of the service names in commit 1904227cc363e0fed0fc69d038a0902010f9331b. The game depends on at least NetStatisticsGet("LanmanWorkstation") to succeed ("LanmanServer" may fail on Windows as well).
From: Paul Gofman pgofman@codeweavers.com
Fixes a regression introduced by 1904227cc363e0fed0fc69d038a0902010f9331b. --- dlls/netapi32/netapi32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/netapi32/netapi32.c b/dlls/netapi32/netapi32.c index 07f23e4bf93..a82ef197f2a 100644 --- a/dlls/netapi32/netapi32.c +++ b/dlls/netapi32/netapi32.c @@ -273,13 +273,13 @@ NET_API_STATUS WINAPI NetStatisticsGet(LMSTR server, LMSTR service, switch (level) { case 0: - if (!wcscmp( service, L"Lanman Workstation" )) + if (!wcscmp( service, L"LanmanWorkstation" )) { /* Fill the struct STAT_WORKSTATION_0 properly */ memset(&stat->workst, 0, sizeof(stat->workst)); res = NERR_Success; } - else if (!wcscmp( service, L"Lanman Server" )) + else if (!wcscmp( service, L"LanmanServer" )) { /* Fill the struct STAT_SERVER_0 properly */ memset(&stat->server, 0, sizeof(stat->server));
This merge request was approved by Elizabeth Figura.