# HG changeset patch
# User Nick Wellnhofer <wellnhofer@aevum.de>
# Date 1623854586 -7200
#      Wed Jun 16 16:43:06 2021 +0200
# Node ID 769e915c79f1f6deed4c070b39bc423514215cb9
# Parent  23712ecd9dfe5164b7bb19e8addacdca50b16639
[win32] Call ANSI versions of WinAPI functions explicitly

Don't depend on Unicode setting.

diff --git a/libexslt/crypto.c b/libexslt/crypto.c
--- a/libexslt/crypto.c
+++ b/libexslt/crypto.c
@@ -124,10 +124,10 @@
     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),
-		   (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
--- 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;