summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
Diffstat (limited to 'shmem')
-rw-r--r--shmem/win32/shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shmem/win32/shm.c b/shmem/win32/shm.c
index a7260bdb2..7bce1331b 100644
--- a/shmem/win32/shm.c
+++ b/shmem/win32/shm.c
@@ -40,10 +40,10 @@ static apr_status_t shm_cleanup(void* shm)
apr_status_t rv = APR_SUCCESS;
apr_shm_t *m = shm;
- if (UnmapViewOfFile(m->memblk)) {
+ if (!UnmapViewOfFile(m->memblk)) {
rv = apr_get_os_error();
}
- if (CloseHandle(m->hMap)) {
+ if (!CloseHandle(m->hMap)) {
return (rv != APR_SUCCESS) ? rv : apr_get_os_error();
}
/* ### Do we want to make a point of unlinking m->file here?