Kernel/arm7 - Tiny bugfix in NewKThread
[tpg/acess2.git] / Kernel / arch / arm7 / proc.c
index 2ab7d46..f4025cc 100644 (file)
@@ -75,7 +75,7 @@ tTID Proc_NewKThread( void (*Fnc)(void*), void *Ptr )
        if(!new)        return -1;
 
        new->KernelStack = MM_NewKStack(0);
-       if(!new) {
+       if(!new->KernelStack) {
                // TODO: Delete thread
                return -1;
        }       

UCC git Repository :: git.ucc.asn.au