secur32: Fixed size passed to GetComputerNameExW.
This commit is contained in:
parent
8a4748bf01
commit
73b16d47ad
|
@ -982,7 +982,7 @@ BOOLEAN WINAPI GetComputerObjectNameW(
|
||||||
case NameSamCompatible:
|
case NameSamCompatible:
|
||||||
{
|
{
|
||||||
WCHAR name[MAX_COMPUTERNAME_LENGTH + 1];
|
WCHAR name[MAX_COMPUTERNAME_LENGTH + 1];
|
||||||
DWORD size = sizeof(name);
|
DWORD size = sizeof(name)/sizeof(name[0]);
|
||||||
if (GetComputerNameW(name, &size))
|
if (GetComputerNameW(name, &size))
|
||||||
{
|
{
|
||||||
int len = domainInfo->Name.Length + size + 3;
|
int len = domainInfo->Name.Length + size + 3;
|
||||||
|
|
Loading…
Reference in New Issue