|
8 | 8 | #include "win32/lazyload.h" |
9 | 9 | #include "../config.h" |
10 | 10 | #include "dir.h" |
| 11 | +#define SECURITY_WIN32 |
| 12 | +#include <sspi.h> |
11 | 13 |
|
12 | 14 | #define HCAST(type, handle) ((type)(intptr_t)handle) |
13 | 15 |
|
@@ -1008,7 +1010,7 @@ size_t mingw_strftime(char *s, size_t max, |
1008 | 1010 | /* a pointer to the original strftime in case we can't find the UCRT version */ |
1009 | 1011 | static size_t (*fallback)(char *, size_t, const char *, const struct tm *) = strftime; |
1010 | 1012 | size_t ret; |
1011 | | - DECLARE_PROC_ADDR(ucrtbase.dll, size_t, strftime, char *, size_t, |
| 1013 | + DECLARE_PROC_ADDR(ucrtbase.dll, size_t, __cdecl, strftime, char *, size_t, |
1012 | 1014 | const char *, const struct tm *); |
1013 | 1015 |
|
1014 | 1016 | if (INIT_PROC_ADDR(strftime)) |
@@ -2185,7 +2187,7 @@ enum EXTENDED_NAME_FORMAT { |
2185 | 2187 |
|
2186 | 2188 | static char *get_extended_user_info(enum EXTENDED_NAME_FORMAT type) |
2187 | 2189 | { |
2188 | | - DECLARE_PROC_ADDR(secur32.dll, BOOL, GetUserNameExW, |
| 2190 | + DECLARE_PROC_ADDR(secur32.dll, BOOL, SEC_ENTRY, GetUserNameExW, |
2189 | 2191 | enum EXTENDED_NAME_FORMAT, LPCWSTR, PULONG); |
2190 | 2192 | static wchar_t wbuffer[1024]; |
2191 | 2193 | DWORD len; |
|
0 commit comments