mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[channels,serial] fix unintialized variable on jump
This commit is contained in:
@@ -690,13 +690,16 @@ static void create_irp_thread(SERIAL_DEVICE* serial, IRP* irp)
|
||||
* for threads.
|
||||
*/
|
||||
}
|
||||
const BOOL added = ListDictionary_Add(serial->IrpThreads, (void*)key, irpThread);
|
||||
ListDictionary_Unlock(serial->IrpThreads);
|
||||
|
||||
if (!added)
|
||||
{
|
||||
WLog_Print(serial->log, WLOG_ERROR, "ListDictionary_Add failed!");
|
||||
goto error_handle;
|
||||
const BOOL added = ListDictionary_Add(serial->IrpThreads, (void*)key, irpThread);
|
||||
ListDictionary_Unlock(serial->IrpThreads);
|
||||
|
||||
if (!added)
|
||||
{
|
||||
WLog_Print(serial->log, WLOG_ERROR, "ListDictionary_Add failed!");
|
||||
goto error_handle;
|
||||
}
|
||||
}
|
||||
|
||||
ResumeThread(irpThread);
|
||||
|
||||
Reference in New Issue
Block a user