[PATCH v2 0/1] MR5996: wineboot: Correct size argument to SetupDiSetDeviceRegistryPropertyA.
This bug is the cause of at least some of the Linux test failures on !5969. -- v2: wineboot: Correct size argument to SetupDiSetDeviceRegistryPropertyA. https://gitlab.winehq.org/wine/wine/-/merge_requests/5996
From: Alex Henrie <alexhenrie24(a)gmail.com> --- programs/wineboot/wineboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index dfa3f6dd738..134d7eeffc7 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1498,7 +1498,7 @@ static void install_root_pnp_devices(void) } if (!SetupDiSetDeviceRegistryPropertyA(set, &device, SPDRP_HARDWAREID, - (const BYTE *)root_devices[i].hardware_id, (strlen(root_devices[i].hardware_id) + 2) * sizeof(WCHAR))) + (const BYTE *)root_devices[i].hardware_id, strlen(root_devices[i].hardware_id) + 2)) { WINE_ERR("Failed to set hardware id for %s, error %#lx.\n", debugstr_a(root_devices[i].name), GetLastError()); continue; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5996
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)