From 8a74bdb371ca3517a24b878f6dce7fa588cca7d8 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 28 Jul 2021 10:36:50 +0200 Subject: [PATCH] Fixed cast warning --- channels/printer/client/printer_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/printer/client/printer_main.c b/channels/printer/client/printer_main.c index 50085c3b3..71d8080d0 100644 --- a/channels/printer/client/printer_main.c +++ b/channels/printer/client/printer_main.c @@ -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;