mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
netapi32: Fix the size of allocation for the string returned from NetpGetComputerName.
This commit is contained in:
parent
a79fa50280
commit
a8e5179d8e
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ NET_API_STATUS WINAPI NetpGetComputerName(LPWSTR *Buffer)
|
|||
if (GetComputerNameW(*Buffer, &dwSize))
|
||||
{
|
||||
NetApiBufferReallocate(
|
||||
*Buffer, dwSize * sizeof(WCHAR),
|
||||
*Buffer, (dwSize + 1) * sizeof(WCHAR),
|
||||
(LPVOID *) Buffer);
|
||||
return NERR_Success;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue