I have not actually tested this (beyond "does it compile") but reading
the docs about FormatMessageW() and the overall other code, this looks
very correct.
Your patch has been applied to the master branch.
It might be applicable to release/2.6, but we use a "TCHAR" there, not
a WCHAR - so that code might just be correct, or not.
commit b39bed539f218f6165d79224adbc343a63a4514d
Author: Heiko Hund
Date: Sat Nov 22 16:55:00 2025 +0100
iservice: fix buffer size in call to FormatMessage
Signed-off-by: Heiko Hund <[email protected]>
Acked-by: Gert Doering <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1387
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg34583.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel