]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/mingw-use-utf8'
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 22:16:49 +0000 (15:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 22:16:49 +0000 (15:16 -0700)
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

1  2 
compat/mingw.c
compat/poll/poll.c
compat/winansi.c

diff --cc compat/mingw.c
Simple merge
index 8b07edb0feca434cce2ff7766c30d7529febf996,8f24b802521e982bd9be6502854689bcd84906f4..0e95dd493c949122b22036bf5d205c413d4a0421
@@@ -149,8 -149,8 +149,8 @@@ win32_compute_revents (HANDLE h, int *p
      case FILE_TYPE_PIPE:
        if (!once_only)
        {
 -        NtQueryInformationFile = (PNtQueryInformationFile)
 +        NtQueryInformationFile = (PNtQueryInformationFile)(void (*)(void))
-           GetProcAddress (GetModuleHandle ("ntdll.dll"),
+           GetProcAddress (GetModuleHandleW (L"ntdll.dll"),
                            "NtQueryInformationFile");
          once_only = TRUE;
        }
Simple merge