rdpdr: Fix detection of device unplug

This commit is contained in:
Martin Fleisz 2022-03-07 15:05:04 +01:00 committed by akallabeth
parent 25e8a362b1
commit 024f7fa4d6

View File

@ -369,7 +369,7 @@ RDPDR_DEVICE* freerdp_device_new(UINT32 Type, size_t count, const char* args[])
goto fail;
}
if (count > 2)
device.drive->automount = (args[2] == NULL) ? FALSE : TRUE;
device.drive->automount = (args[2] == NULL) ? TRUE : FALSE;
break;
default:
goto fail;