]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/mingw.c
mingw: use Unicode functions explicitly
[thirdparty/git.git] / compat / mingw.c
index 8526876262aac6ce13f3c4ee4dcb9b17547e0aed..b8a62bf9147092e6c689fecf3170d03316b4dc06 100644 (file)
@@ -1407,7 +1407,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
        do_unset_environment_variables();
 
        /* Determine whether or not we are associated to a console */
-       cons = CreateFile("CONOUT$", GENERIC_WRITE,
+       cons = CreateFileW(L"CONOUT$", GENERIC_WRITE,
                        FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
                        FILE_ATTRIBUTE_NORMAL, NULL);
        if (cons == INVALID_HANDLE_VALUE) {