summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/win32/ngx_shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_shmem.c b/src/os/win32/ngx_shmem.c
index c3ed699f7..4932764e8 100644
--- a/src/os/win32/ngx_shmem.c
+++ b/src/os/win32/ngx_shmem.c
@@ -82,7 +82,7 @@ ngx_shm_alloc(ngx_shm_t *shm)
shm->addr = MapViewOfFileEx(shm->handle, FILE_MAP_WRITE, 0, 0, 0, base);
if (shm->addr != NULL) {
- base += ngx_align(size, ngx_allocation_granularity);
+ base += ngx_align(shm->size, ngx_allocation_granularity);
return NGX_OK;
}