Fix hotplug

This commit is contained in:
james 2022-01-25 22:28:27 +08:00 committed by akallabeth
parent f1e6c6b131
commit 2d4850de66

View File

@ -711,7 +711,7 @@ static void handle_mountpoint(hotplug_dev* dev_array, size_t* size, const char*
if (isAutomountLocation(mountpoint) && (*size < MAX_USB_DEVICES))
{
dev_array[*size].path = _strdup(mountpoint);
dev_array[*size + 1].to_add = TRUE;
dev_array[*size].to_add = TRUE;
(*size)++;
}
}