setupapi: Fix size passed to MultiByteToWideChar.

Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2018-11-29 13:30:21 +01:00 committed by Alexandre Julliard
parent 743eec6d5e
commit 161d02fd5d
1 changed files with 1 additions and 1 deletions

View File

@ -1351,7 +1351,7 @@ BOOL WINAPI SetupDiCreateDeviceInfoA(HDEVINFO DeviceInfoSet, const char *name,
return FALSE;
}
MultiByteToWideChar(CP_ACP, 0, name, -1, nameW, sizeof(nameW));
MultiByteToWideChar(CP_ACP, 0, name, -1, nameW, ARRAY_SIZE(nameW));
if (DeviceDescription)
{