From 8f51b6bac2edf13ca062ca9363689bd1369cbbdb Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 13 Sep 2018 17:30:12 +0300 Subject: [PATCH] mdbx-tools: fix `ENOMEM` for Windows (minor). --- src/tools/mdbx_chk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index d151ba6f..1442f626 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -588,7 +588,7 @@ static int process_db(MDBX_dbi dbi_handle, char *dbi_name, visitor *handler, : pagemap_lookup_dbi(dbi_name, true); if (!dbi) { error("too many DBIs or out of memory\n"); - return ENOMEM; + return MDBX_ENOMEM; } const uint64_t subtotal_pages = ms.ms_branch_pages + ms.ms_leaf_pages + ms.ms_overflow_pages;