summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-15 15:20:18 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-15 15:20:18 +0200
commit2742713e53440e7bdb61e554c3f0fca70513033a (patch)
treed6d33548e0c6af513559d67af55c50f3ee538522
parentfb6c9ff7f21e46edf8a7d72cc77769966a3f6a05 (diff)
downloadkit-2742713e53440e7bdb61e554c3f0fca70513033a.zip
shared_memory: fix
-rw-r--r--source/kit/shared_memory.win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/kit/shared_memory.win32.c b/source/kit/shared_memory.win32.c
index b13308f..9ea3b5c 100644
--- a/source/kit/shared_memory.win32.c
+++ b/source/kit/shared_memory.win32.c
@@ -70,7 +70,7 @@ kit_shared_memory_t kit_shared_memory_open(kit_str_t name, i64 size,
kit_status_t kit_shared_memory_close(kit_shared_memory_t *mem) {
assert(mem != NULL);
- UnmapViewOfFile(mem.bytes);
- CloseHandle(mem._handle);
+ UnmapViewOfFile(mem->bytes);
+ CloseHandle(mem->_handle);
}
#endif