On Tue, Apr 18, 2023 at 10:14:46AM -0400, [email protected] wrote:
> From: Selva Nair <[email protected]>
> 
> - We assume that all text passed to the management interface
>   and written to log file are in Unicode (UTF-8). This is broken by
>   the use of the ANSI version of FormatMessage() for Windows error
>   messages. Fix by using FormatMessageW() and converting the UTF-16
>   result to UTF-8.
> 
> v2: assign return value of FormatMessageW() to DWORD, not int
> 
> Github: fixes OpenVPN/openvpn#319
> 
> Signed-off-by: Selva Nair <[email protected]>
> ---
>  src/openvpn/error.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

Looks good to me.

Acked-By: Frank Lichtenheld <[email protected]>

Regards,
-- 
  Frank Lichtenheld


_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to