aboutsummaryrefslogtreecommitdiff
path: root/compat/poll/poll.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-11 15:16:49 -0700
committerJunio C Hamano <gitster@pobox.com>2019-07-11 15:16:49 -0700
commit0a2ff7c6b5ec5e4301a9cfb3c0dd26590d70ad7a (patch)
treefc3b78100325d2f220f86ce5c4af848cbb5eb2ba /compat/poll/poll.c
parente1cee0b84335c2ad9ffbbcb96d34850eeb5f17fd (diff)
parent697bdd22b887a0778489814e44dcec850aa82ad0 (diff)
downloadgit-0a2ff7c6b5ec5e4301a9cfb3c0dd26590d70ad7a.tar.xz
Merge branch 'js/mingw-use-utf8'
Windows update. * js/mingw-use-utf8: mingw: fix possible buffer overrun when calling `GetUserNameW()` mingw: use Unicode functions explicitly mingw: get pw_name in UTF-8 format
Diffstat (limited to 'compat/poll/poll.c')
-rw-r--r--compat/poll/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/poll/poll.c b/compat/poll/poll.c
index 8b07edb0fe..0e95dd493c 100644
--- a/compat/poll/poll.c
+++ b/compat/poll/poll.c
@@ -150,7 +150,7 @@ win32_compute_revents (HANDLE h, int *p_sought)
if (!once_only)
{
NtQueryInformationFile = (PNtQueryInformationFile)(void (*)(void))
- GetProcAddress (GetModuleHandle ("ntdll.dll"),
+ GetProcAddress (GetModuleHandleW (L"ntdll.dll"),
"NtQueryInformationFile");
once_only = TRUE;
}