[PATCH 0/1] MR7936: netapi32: Fix service names in NetStatisticsGet().
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). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7936
From: Paul Gofman <pgofman(a)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)); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7936
This merge request was approved by Elizabeth Figura. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7936
participants (3)
-
Elizabeth Figura (@zfigura) -
Paul Gofman -
Paul Gofman (@gofman)