coroutine: co->fiber has not to be null
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 19 Oct 2015 04:57:24 +0000 (13:57 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 20 Oct 2015 04:02:12 +0000 (13:02 +0900)
commit8ef3b80ef6e5283c5b4f5c6a6f98d3b91db696ae
tree0d25a74c304ae5b8d3d48f6bc78c6be1c6f37c47
parent1e6f6db1c90a5a6452261d7b836371a69d0917c4
coroutine: co->fiber has not to be null

CreateFiber() will be return NULL when it fails. If co->fiber is null,
SwitchToFiber() aborts with C0000005 and it corrupts stack that make
hard to find causes. So it is better to abort when CreateFiber()
returns NULL.

Change-Id: Ifdc36404ce523cee842fd486bdbe071e58b7d7b3
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
coroutine-win32.c