Skip to content

Commit

Permalink
Fixed windows automount drive arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed Jul 30, 2018
1 parent 4035ed4 commit 93fa8eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions channels/drive/client/drive_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
return CHANNEL_RC_NO_MEMORY;
}

error = drive_register_drive_path(pEntryPoints, drive->Name, drive->Path);
error = drive_register_drive_path(pEntryPoints, drive->Name, drive->Path, drive->automount);
}
else if (strcmp(drive->Path, "*") == 0)
{
Expand Down Expand Up @@ -1072,7 +1072,7 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
return CHANNEL_RC_NO_MEMORY;
}

if ((error = drive_register_drive_path(pEntryPoints, bufdup, devdup)))
if ((error = drive_register_drive_path(pEntryPoints, bufdup, devdup, TRUE)))
{
break;
}
Expand All @@ -1081,7 +1081,7 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
}
else
{
error = drive_register_drive_path(pEntryPoints, drive->Name, drive->Path);
error = drive_register_drive_path(pEntryPoints, drive->Name, drive->Path, drive->automount);
}

#endif
Expand Down

0 comments on commit 93fa8eb

Please sign in to comment.