mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-01 14:06:55 +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:
committed by
Nick Wellnhofer
parent
4aad403232
commit
fbec07736b
@ -127,7 +127,7 @@ exsltCryptoCryptoApiReportError (xmlXPathParserContextPtr ctxt,
|
|||||||
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||||
FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
|
FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
|
||||||
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
|
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
&lpMsgBuf, 0, NULL);
|
(LPSTR)&lpMsgBuf, 0, NULL);
|
||||||
|
|
||||||
xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
|
xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
|
||||||
"exslt:crypto error (line %d). %s", line,
|
"exslt:crypto error (line %d). %s", line,
|
||||||
|
Reference in New Issue
Block a user