netapi32: Fill the data buffer with something useful in NetLocalGroupGetInfo.

This commit is contained in:
Louis Lenders 2011-06-05 10:43:57 +02:00 committed by Alexandre Julliard
parent 4fbb13a2c8
commit 4680f63939
1 changed files with 17 additions and 1 deletions

View File

@ -145,8 +145,24 @@ NET_API_STATUS WINAPI NetLocalGroupGetInfo(
DWORD level,
LPBYTE* bufptr)
{
FIXME("(%s %s %d %p) stub!\n", debugstr_w(servername),
static const WCHAR commentW[]={'N','o',' ','c','o','m','m','e','n','t',0};
LOCALGROUP_INFO_1* info;
DWORD size;
FIXME("(%s %s %d %p) semi-stub!\n", debugstr_w(servername),
debugstr_w(groupname), level, bufptr);
size = sizeof(*info) + sizeof(WCHAR) * (lstrlenW(groupname)+1) + sizeof(commentW);
NetApiBufferAllocate(size, (LPVOID*)&info);
info->lgrpi1_name = (LPWSTR)(info + 1);
lstrcpyW(info->lgrpi1_name, groupname);
info->lgrpi1_comment = info->lgrpi1_name + lstrlenW(groupname) + 1;
lstrcpyW(info->lgrpi1_comment, commentW);
*bufptr = (LPBYTE)info;
return NERR_Success;
}