1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

crypto.c: Silence a compiler warning on Windows

Cast lpBuffer to a LPSTR, so that we don't get a C4047/C4024 warning for
type conversion, which normally would raise alarm.
This commit is contained in:
Chun-wei Fan
2022-03-09 12:51:07 +08:00
committed by Nick Wellnhofer
parent 4aad403232
commit fbec07736b

View File

@ -127,7 +127,7 @@ exsltCryptoCryptoApiReportError (xmlXPathParserContextPtr ctxt,
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
&lpMsgBuf, 0, NULL);
(LPSTR)&lpMsgBuf, 0, NULL);
xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
"exslt:crypto error (line %d). %s", line,