From bc03467040550340f4b04f5f77dd0c741e5f4a2a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 30 Jul 2013 13:44:28 -0700 Subject: [PATCH] Fix typo in Win32 branch --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 2a4bbeecc4..72fdd06298 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2980,7 +2980,7 @@ mdb_env_init_meta(MDB_env *env, MDB_meta *meta) OVERLAPPED ov; memset(&ov, 0, sizeof(ov)); rc = WriteFile(env->me_fd, p, psize * 2, &len, &ov); - rc = (len == psize * 2 ? MDB_SUCCESS : ErrCode(); + rc = (len == psize * 2) ? MDB_SUCCESS : ErrCode(); } #else rc = pwrite(env->me_fd, p, psize * 2, 0); -- 2.39.5