mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-02 23:50:51 +08:00
mdbx-windows: fix mdbx_assert_fail().
This commit is contained in:
parent
718f997502
commit
5400ef6512
@ -176,7 +176,7 @@ void __cold mdbx_assert_fail(const MDBX_env *env, const char *msg,
|
|||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
char *message = nullptr;
|
char *message = nullptr;
|
||||||
const int num = mdbx_asprintf(&message, "\r\nMDBX-ASSERTION: %s, %s:%u",
|
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)
|
if (num < 1 || !message)
|
||||||
message = "<troubles with assertion-message preparation>";
|
message = "<troubles with assertion-message preparation>";
|
||||||
OutputDebugStringA(message);
|
OutputDebugStringA(message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user