From 01d23d5d689e6794899630df1a9cd97656a6f154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Sat, 10 Sep 2016 01:20:34 +0200 Subject: [PATCH] (VITA) Fix some bugs --- libretro-common/libco/scefiber.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-common/libco/scefiber.c b/libretro-common/libco/scefiber.c index af06ba35e8..a233bec33c 100644 --- a/libretro-common/libco/scefiber.c +++ b/libretro-common/libco/scefiber.c @@ -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); }