Add some debugging.

svn path=/trunk/; revision=8177
This commit is contained in:
Steven Edwards 2004-02-14 23:21:44 +00:00
parent 459d72e610
commit b829420396
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,3 @@
Makefile
netapi32.def
netapi32.dll
netapi32.dll.dbg.c

View file

@ -296,9 +296,9 @@ NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
* NetWkstaUserGetInfo (NETAPI32.@)
*/
NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
PBYTE* bufptr)
LPBYTE* bufptr)
{
TRACE("(%s, %ld, %p)\n", debugstr_w(reserved), level, bufptr);
FIXME("(%s, %ld, %p)\n", debugstr_w(reserved), level, bufptr);
switch (level)
{
case 0:
@ -317,9 +317,11 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
if (!GetUserNameW(ui->wkui0_username, &dwSize))
{
NetApiBufferFree(ui);
FIXME("NetWkstaUserGetInfo - ERROR_NOT_ENOUGH_MEMORY\n");
return ERROR_NOT_ENOUGH_MEMORY;
}
else
FIXME("NetWkstaUserGetInfo - trying NetApiBufferReallocate\n");
NetApiBufferReallocate(
*bufptr, sizeof(WKSTA_USER_INFO_0) +
(lstrlenW(ui->wkui0_username) + 1) * sizeof(WCHAR),
@ -346,6 +348,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
/* get some information first to estimate size of the buffer */
ui0 = NULL;
FIXME("NetWkstaUserGetInfo - ??NetWkstaUserGetInfo\n");
NetWkstaUserGetInfo(NULL, 0, (PBYTE *) &ui0);
username_sz = lstrlenW(ui0->wkui0_username) + 1;
@ -418,6 +421,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
ERR("Invalid level %ld is specified\n", level);
return ERROR_INVALID_LEVEL;
}
FIXME("NetWkstaUserGetInfo - ERROR_NOT_ENOUGH_MEMORY\n");
return NERR_Success;
}