summaryrefslogtreecommitdiff
path: root/src/win32/error.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2013-03-31 22:22:33 -0400
committerPhilip Kelley <phkelley@hotmail.com>2013-03-31 22:22:33 -0400
commit5c5eeba6fda50e350c5e007ed5d59f8ca92ad0d8 (patch)
tree2160f5a4a1ef45e64c4ec1a09ff792fd50088e81 /src/win32/error.c
parent8cc2f2d86fa8a54b1ba87564c046e2e431e4ced0 (diff)
downloadlibgit2-5c5eeba6fda50e350c5e007ed5d59f8ca92ad0d8.tar.gz
Add git_has_win32_version helper
Diffstat (limited to 'src/win32/error.c')
-rw-r--r--src/win32/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/error.c b/src/win32/error.c
index 4f169cf4d..4a9a0631f 100644
--- a/src/win32/error.c
+++ b/src/win32/error.c
@@ -45,7 +45,7 @@ char *git_win32_get_error_message(DWORD error_code)
(LPWSTR)&lpMsgBuf, 0, NULL)) {
/* Invalid code point check supported on Vista+ only */
- if (LOBYTE(LOWORD(GetVersion())) >= 6)
+ if (git_has_win32_version(6, 0))
dwFlags = WC_ERR_INVALID_CHARS;
else
dwFlags = 0;