(VITA) Fix some bugs

This commit is contained in:
Francisco José García García 2016-09-10 01:20:34 +02:00
parent 1bf6887c59
commit 01d23d5d68

View File

@ -55,7 +55,7 @@ cothread_t co_create(unsigned int heapsize, void (*coentry)(void))
}
//_sceFiberInitializeImpl
int ret = _sceFiberInitializeImpl(tailFiber, "tailFiber", co_thunk, (uint32_t)coentry, (void*) m_contextBuffer, 10000, NULL);
int ret = _sceFiberInitializeImpl(tailFiber, "tailFiber", co_thunk, (uint32_t)coentry, (void*) m_contextBuffer, heapsize, NULL);
if(ret==0){
return (cothread_t)tailFiber;
}else{
@ -66,6 +66,9 @@ cothread_t co_create(unsigned int heapsize, void (*coentry)(void))
void co_delete(cothread_t cothread)
{
if(cothread == (cothread_t)1){
return;
}
sceFiberFinalize((SceFiber*)cothread);
}