mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[return checks] fix use of SetEvent
This commit is contained in:
@@ -690,7 +690,7 @@ static UINT printer_irp_request(DEVICE* device, IRP* irp)
|
||||
if (printer_dev->async)
|
||||
{
|
||||
InterlockedPushEntrySList(printer_dev->pIrpList, &(irp->ItemEntry));
|
||||
SetEvent(printer_dev->event);
|
||||
(void)SetEvent(printer_dev->event);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -908,7 +908,7 @@ static UINT printer_free(DEVICE* device)
|
||||
|
||||
if (printer_dev->async)
|
||||
{
|
||||
SetEvent(printer_dev->stopEvent);
|
||||
(void)SetEvent(printer_dev->stopEvent);
|
||||
|
||||
if (WaitForSingleObject(printer_dev->thread, INFINITE) == WAIT_FAILED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user