ddnet/src/base
Robert Müller 8bde109acb Use dynamic size for formatted Windows system messages
Extract `windows_format_system_message` and allocate appropriate buffer for the formatted system error messages, so messages of any length can be displayed.

The flag `FORMAT_MESSAGE_ALLOCATE_BUFFER` is used so `FormatMessageW` allocates the buffer which must later be freed with `LocalFree`.

The flag `FORMAT_MESSAGE_MAX_WIDTH_MASK` is also added so the formatted message will not contain any line breaks at the end, which would make log messages less readable.

Reference: https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew
2022-10-29 21:17:47 +02:00
..
tl Fix misspellings 2022-10-25 13:51:56 -03:00
unicode Changed file names to match classic source.c include header.h 2022-05-07 00:54:29 +02:00
bezier.cpp Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
bezier.h Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
color.h Reworked color system 2022-07-06 11:39:51 +02:00
detect.h Emscripten support 2022-03-25 12:42:18 +01:00
dynamic.h Run clang-format 2020-09-26 21:50:15 +02:00
hash.cpp Use size_t for indices in digest_str 2022-10-15 18:08:41 +02:00
hash.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
hash_bundled.cpp Use cpp 2021-06-24 17:19:17 +02:00
hash_ctxt.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
hash_libtomcrypt.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
hash_openssl.cpp Ignore openssl deprecation warning for now (fixes #5597) 2022-07-27 09:06:57 +02:00
lock_scope.h Fix TSA warnings in Clang 15 (fixes #5548) 2022-09-15 23:31:09 +02:00
log.cpp Use dynamic buffer size in CLoggerWindowsDebugger 2022-10-29 21:17:47 +02:00
log.h Add logging macros log_{error,warn,info,debug,trace} 2022-04-29 15:32:42 +02:00
logger.h More vector naming format 2022-06-15 19:37:37 +02:00
math.h Work around Windows's definition of min/max 2022-05-31 17:26:35 +02:00
system.cpp Use dynamic size for formatted Windows system messages 2022-10-29 21:17:47 +02:00
system.h Fix misspellings 2022-10-25 13:51:56 -03:00
types.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
vmath.h Replace 2 floats array with vec2 where it makes sense 2022-07-06 11:39:43 +02:00