Louis Lenders : netapi32: Improve stubbed NetGetJoinInformation function.

Alexandre Julliard julliard at winehq.org
Fri Jun 10 11:16:20 CDT 2011


Module: wine
Branch: master
Commit: ed28cab62488d58a8e2d6d4c675b548512f1f230
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ed28cab62488d58a8e2d6d4c675b548512f1f230

Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date:   Fri Jun 10 11:06:53 2011 +0200

netapi32: Improve stubbed NetGetJoinInformation function.

---

 dlls/netapi32/wksta.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c
index ad8d87e..ba2f628 100644
--- a/dlls/netapi32/wksta.c
+++ b/dlls/netapi32/wksta.c
@@ -584,10 +584,16 @@ NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation(
     LPWSTR *Name,
     PNETSETUP_JOIN_STATUS type)
 {
-    FIXME("Stub %s %p %p\n", wine_dbgstr_w(Server), Name, type);
+    static const WCHAR workgroupW[] = {'W','o','r','k','g','r','o','u','p',0};
 
-    *Name = NULL;
-    *type = NetSetupUnknownStatus;
+    FIXME("Semi-stub %s %p %p\n", wine_dbgstr_w(Server), Name, type);
+
+    if (!Name || !type)
+        return ERROR_INVALID_PARAMETER;
+
+    NetApiBufferAllocate(sizeof(workgroupW), (LPVOID *)Name);
+    lstrcpyW(*Name, workgroupW);
+    *type = NetSetupWorkgroupName;
 
     return NERR_Success;
 }




More information about the wine-cvs mailing list