diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 2a4bbee..72fdd06 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);