From e852c8828e885acdb6f53bb0f11590a5c34473d9 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 15 Sep 2023 15:32:06 +0200 Subject: shared_memory: win32 fix --- source/tests/test_interprocess.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/tests') diff --git a/source/tests/test_interprocess.c b/source/tests/test_interprocess.c index 58044bf..5afc0c8 100644 --- a/source/tests/test_interprocess.c +++ b/source/tests/test_interprocess.c @@ -25,7 +25,10 @@ int run_writer() { while (mem.bytes[0] != STATE_DONE) thrd_yield(); - return kit_shared_memory_close(&mem); + if (kit_shared_memory_close(&mem) != KIT_OK) + return 1; + + return 0; } int run_reader() { -- cgit v1.2.3