Fix hotplug
(cherry picked from commit d5bd834e674fb737c095862e8365284154739ee3)
This commit is contained in:
parent
15d4928998
commit
d98e59237a
@ -655,7 +655,7 @@ static void handle_mountpoint(hotplug_dev* dev_array, size_t* size, const char*
|
|||||||
if (isAutomountLocation(mountpoint) && (*size < MAX_USB_DEVICES))
|
if (isAutomountLocation(mountpoint) && (*size < MAX_USB_DEVICES))
|
||||||
{
|
{
|
||||||
dev_array[*size].path = _strdup(mountpoint);
|
dev_array[*size].path = _strdup(mountpoint);
|
||||||
dev_array[*size + 1].to_add = TRUE;
|
dev_array[*size].to_add = TRUE;
|
||||||
(*size)++;
|
(*size)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user