From: Paul Gofman pgofman@codeweavers.com
--- dlls/setupapi/devinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 9a02692350f..6b6c4054653 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -4362,7 +4362,7 @@ static CONFIGRET get_device_id_list(const WCHAR *filter, WCHAR *buffer, ULONG *l p = buffer; for (i = 0; SetupDiEnumDeviceInfo(set, i, &device); ++i) { - ret = SetupDiGetDeviceInstanceIdW(set, &device, id, sizeof(id), NULL); + ret = SetupDiGetDeviceInstanceIdW(set, &device, id, sizeof(id) / sizeof(*id), NULL); if (!ret) continue; id_len = wcslen(id) + 1; needed += id_len;