diff --git a/libexslt/crypto.c b/libexslt/crypto.c index 23712ecd9dfe5164b7bb19e8addacdca50b16639_bGliZXhzbHQvY3J5cHRvLmM=..769e915c79f1f6deed4c070b39bc423514215cb9_bGliZXhzbHQvY3J5cHRvLmM= 100644 --- a/libexslt/crypto.c +++ b/libexslt/crypto.c @@ -124,6 +124,6 @@ char *lpMsgBuf; DWORD dw = GetLastError (); - FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | + FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), @@ -128,6 +128,6 @@ FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPTSTR) & lpMsgBuf, 0, NULL); + &lpMsgBuf, 0, NULL); xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL, "exslt:crypto error (line %d). %s", line, diff --git a/libxslt/security.c b/libxslt/security.c index 23712ecd9dfe5164b7bb19e8addacdca50b16639_bGlieHNsdC9zZWN1cml0eS5j..769e915c79f1f6deed4c070b39bc423514215cb9_bGlieHNsdC9zZWN1cml0eS5j 100644 --- a/libxslt/security.c +++ b/libxslt/security.c @@ -282,7 +282,7 @@ #if defined(_WIN32) && !defined(__CYGWIN__) DWORD dwAttrs; - dwAttrs = GetFileAttributes(path); + dwAttrs = GetFileAttributesA(path); if (dwAttrs != INVALID_FILE_ATTRIBUTES) { if (dwAttrs & FILE_ATTRIBUTE_DIRECTORY) { return 2;