netapi32: Correctly reallocate buffer in NetWkstaUserGetInfo.
This commit is contained in:
parent
637bcd5de9
commit
7164fde439
|
@ -1627,8 +1627,13 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LMSTR reserved, DWORD level,
|
|||
(lstrlenW(ui->wkui0_username) + 1) * sizeof(WCHAR),
|
||||
(LPVOID *) bufptr);
|
||||
if (nastatus != NERR_Success)
|
||||
{
|
||||
NetApiBufferFree(ui);
|
||||
return nastatus;
|
||||
}
|
||||
ui = (PWKSTA_USER_INFO_0) *bufptr;
|
||||
ui->wkui0_username = (LMSTR) (*bufptr + sizeof(WKSTA_USER_INFO_0));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue