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:
parent
a9b27c2b0d
commit
92919001f3
|
@ -3596,7 +3596,7 @@ BOOL WINAPI SetupDiSetDeviceInstallParamsA(HDEVINFO devinfo,
|
|||
paramsW.FileQueue = params->FileQueue;
|
||||
paramsW.ClassInstallReserved = params->ClassInstallReserved;
|
||||
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, ¶msW);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue