Module: wine Branch: master Commit: cb866902ec4a3ec19bd9966412fa82de7071841d URL: https://gitlab.winehq.org/wine/wine/-/commit/cb866902ec4a3ec19bd9966412fa82d...
Author: Alex Henrie alexhenrie24@gmail.com Date: Fri Jul 5 09:26:57 2024 -0600
wineboot: Correct size argument to SetupDiSetDeviceRegistryPropertyA.
---
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;