windows: Make set_window_bytemap return standard errno
Do the error number conversion at the edges.
Change-Id: I5774065f13c8afb865926436b36ea9831f27620d
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mboxd_windows.c b/mboxd_windows.c
index 233bfdd..6a14e68 100644
--- a/mboxd_windows.c
+++ b/mboxd_windows.c
@@ -369,7 +369,7 @@
offset << context->block_size_shift,
size << context->block_size_shift,
cur->size << context->block_size_shift);
- return -MBOX_R_PARAM_ERROR;
+ return -EACCES;
}
memset(cur->dirty_bmap + offset, val, size);