summaryrefslogtreecommitdiff
path: root/src/win32/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/error.c')
-rw-r--r--src/win32/error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/win32/error.c b/src/win32/error.c
index 4a9a0631f..bc598ae32 100644
--- a/src/win32/error.c
+++ b/src/win32/error.c
@@ -12,7 +12,9 @@
# include <winhttp.h>
#endif
+#ifndef WC_ERR_INVALID_CHARS
#define WC_ERR_INVALID_CHARS 0x80
+#endif
char *git_win32_get_error_message(DWORD error_code)
{
@@ -45,7 +47,7 @@ char *git_win32_get_error_message(DWORD error_code)
(LPWSTR)&lpMsgBuf, 0, NULL)) {
/* Invalid code point check supported on Vista+ only */
- if (git_has_win32_version(6, 0))
+ if (git_has_win32_version(6, 0, 0))
dwFlags = WC_ERR_INVALID_CHARS;
else
dwFlags = 0;