Commit 161d02fd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

setupapi: Fix size passed to MultiByteToWideChar.

parent 743eec6d
...@@ -1351,7 +1351,7 @@ BOOL WINAPI SetupDiCreateDeviceInfoA(HDEVINFO DeviceInfoSet, const char *name, ...@@ -1351,7 +1351,7 @@ BOOL WINAPI SetupDiCreateDeviceInfoA(HDEVINFO DeviceInfoSet, const char *name,
return FALSE; return FALSE;
} }
MultiByteToWideChar(CP_ACP, 0, name, -1, nameW, sizeof(nameW)); MultiByteToWideChar(CP_ACP, 0, name, -1, nameW, ARRAY_SIZE(nameW));
if (DeviceDescription) if (DeviceDescription)
{ {
......
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