From 128b8bb0a8ba15ec7ae1591b759981b57e6feca9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 16 Sep 2012 12:07:56 +0800 Subject: [PATCH] Modules/IPStack - Fix for Proc_SpawnWorker change --- KernelLand/Modules/IPStack/adapters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 2a02fd27..deb05528 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -85,8 +85,8 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi Mutex_Release( &glIP_Adapters ); // Watch the adapter for incoming packets - tTID tid = Proc_SpawnWorker(Adapter_int_WatchThread, ret); - if(tid < 0) { + void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret); + if(!worker) { Log_Warning("IPStack", "Unable to create watcher thread for %p", ret); } -- 2.20.1