setupapi: Fix size to MultiByteToWideChar().

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2019-05-17 09:40:08 +02:00 committed by Alexandre Julliard
parent a9b27c2b0d
commit 92919001f3
1 changed files with 1 additions and 1 deletions

View File

@ -3596,7 +3596,7 @@ BOOL WINAPI SetupDiSetDeviceInstallParamsA(HDEVINFO devinfo,
paramsW.FileQueue = params->FileQueue; paramsW.FileQueue = params->FileQueue;
paramsW.ClassInstallReserved = params->ClassInstallReserved; paramsW.ClassInstallReserved = params->ClassInstallReserved;
paramsW.Reserved = params->Reserved; paramsW.Reserved = params->Reserved;
MultiByteToWideChar(CP_ACP, 0, params->DriverPath, -1, paramsW.DriverPath, sizeof(paramsW.DriverPath)); MultiByteToWideChar(CP_ACP, 0, params->DriverPath, -1, paramsW.DriverPath, ARRAY_SIZE(paramsW.DriverPath));
return SetupDiSetDeviceInstallParamsW(devinfo, device_data, &paramsW); return SetupDiSetDeviceInstallParamsW(devinfo, device_data, &paramsW);
} }