Fix typo in Win32 branch

vmware
Howard Chu 11 years ago
parent 254b77e63d
commit bc03467040
  1. 2
      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);

Loading…
Cancel
Save