mdbx-windows: fix mdbx_assert_fail().

This commit is contained in:
Leonid Yuriev 2018-10-21 15:42:26 +03:00
parent 718f997502
commit 5400ef6512

View File

@ -176,7 +176,7 @@ void __cold mdbx_assert_fail(const MDBX_env *env, const char *msg,
#if defined(_WIN32) || defined(_WIN64)
char *message = nullptr;
const int num = mdbx_asprintf(&message, "\r\nMDBX-ASSERTION: %s, %s:%u",
func ? func : "unknown", line);
msg, func ? func : "unknown", line);
if (num < 1 || !message)
message = "<troubles with assertion-message preparation>";
OutputDebugStringA(message);