Commit 73b16d47 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

secur32: Fixed size passed to GetComputerNameExW.

parent 8a4748bf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment