Louis Lenders : netapi32: Fill the data buffer with something useful in NetLocalGroupGetInfo.
Alexandre Julliard
julliard at winehq.org
Wed Jun 8 11:27:03 CDT 2011
Module: wine
Branch: master
Commit: 4680f63939dc8fd6b26d17125a4d0d9f95702217
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4680f63939dc8fd6b26d17125a4d0d9f95702217
Author: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date: Sun Jun 5 10:43:57 2011 +0200
netapi32: Fill the data buffer with something useful in NetLocalGroupGetInfo.
---
dlls/netapi32/local_group.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/dlls/netapi32/local_group.c b/dlls/netapi32/local_group.c
index e125de5..7f7d3c1 100644
--- a/dlls/netapi32/local_group.c
+++ b/dlls/netapi32/local_group.c
@@ -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;
}
More information about the wine-cvs
mailing list