netapi32: Improve stubbed NetGetJoinInformation function.

This commit is contained in:
Louis Lenders 2011-06-10 11:06:53 +02:00 committed by Alexandre Julliard
parent cdf457774d
commit ed28cab624
1 changed files with 9 additions and 3 deletions

View File

@ -584,10 +584,16 @@ NET_API_STATUS NET_API_FUNCTION NetGetJoinInformation(
LPWSTR *Name, LPWSTR *Name,
PNETSETUP_JOIN_STATUS type) 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; FIXME("Semi-stub %s %p %p\n", wine_dbgstr_w(Server), Name, type);
*type = NetSetupUnknownStatus;
if (!Name || !type)
return ERROR_INVALID_PARAMETER;
NetApiBufferAllocate(sizeof(workgroupW), (LPVOID *)Name);
lstrcpyW(*Name, workgroupW);
*type = NetSetupWorkgroupName;
return NERR_Success; return NERR_Success;
} }