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:
parent
743eec6d5e
commit
161d02fd5d
dlls/setupapi
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue