mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
netapi32: Fix the size of allocation for the string returned from NetpGetComputerName.
This commit is contained in:
parent
a79fa50280
commit
a8e5179d8e
@ -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 New Issue
Block a user