mirror of https://github.com/FreeRDP/FreeRDP
Fixed cast warning
This commit is contained in:
parent
7c14196000
commit
8a74bdb371
|
@ -920,7 +920,7 @@ static UINT printer_register(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints, rdpPrint
|
|||
goto error_out;
|
||||
}
|
||||
|
||||
if ((error = pEntryPoints->RegisterDevice(pEntryPoints->devman, (DEVICE*)printer_dev)))
|
||||
if ((error = pEntryPoints->RegisterDevice(pEntryPoints->devman, &printer_dev->device)))
|
||||
{
|
||||
WLog_ERR(TAG, "RegisterDevice failed with error %" PRIu32 "!", error);
|
||||
goto error_out;
|
||||
|
|
Loading…
Reference in New Issue