Fixed cast warning

This commit is contained in:
Armin Novak 2021-07-28 10:36:50 +02:00 committed by akallabeth
parent 7c14196000
commit 8a74bdb371
1 changed files with 1 additions and 1 deletions

View File

@ -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;