secur32: Fixed size passed to GetComputerNameExW.

This commit is contained in:
Marcus Meissner 2008-09-14 10:52:09 +02:00 committed by Alexandre Julliard
parent 8a4748bf01
commit 73b16d47ad
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ BOOLEAN WINAPI GetComputerObjectNameW(
case NameSamCompatible:
{
WCHAR name[MAX_COMPUTERNAME_LENGTH + 1];
DWORD size = sizeof(name);
DWORD size = sizeof(name)/sizeof(name[0]);
if (GetComputerNameW(name, &size))
{
int len = domainInfo->Name.Length + size + 3;