Merge branch 'ds/commit-graph-incremental'
[gitweb.git] / compat / poll / poll.c
index 4459408c7d0ba762b1dd4184a4c970778ba097a5..0e95dd493c949122b22036bf5d205c413d4a0421 100644 (file)
@@ -149,8 +149,8 @@ win32_compute_revents (HANDLE h, int *p_sought)
     case FILE_TYPE_PIPE:
       if (!once_only)
        {
-         NtQueryInformationFile = (PNtQueryInformationFile)
-           GetProcAddress (GetModuleHandle ("ntdll.dll"),
+         NtQueryInformationFile = (PNtQueryInformationFile)(void (*)(void))
+           GetProcAddress (GetModuleHandleW (L"ntdll.dll"),
                            "NtQueryInformationFile");
          once_only = TRUE;
        }