OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 64bit crash problem at log dialog
[tortoisegit/TortoiseGitJp.git]
/
ext
/
gitdll
/
gitdll.c
diff --git
a/ext/gitdll/gitdll.c
b/ext/gitdll/gitdll.c
index
0257738
..
77607b1
100644
(file)
--- a/
ext/gitdll/gitdll.c
+++ b/
ext/gitdll/gitdll.c
@@
-74,6
+74,11
@@
int git_init()
char *prefix;
\r
size_t homesize,size,httpsize;
\r
\r
char *prefix;
\r
size_t homesize,size,httpsize;
\r
\r
+ _fmode = _O_BINARY;
\r
+ _setmode(_fileno(stdin), _O_BINARY);
\r
+ _setmode(_fileno(stdout), _O_BINARY);
\r
+ _setmode(_fileno(stderr), _O_BINARY);
\r
+
\r
// set HOME if not set already
\r
getenv_s(&homesize, NULL, 0, "HOME");
\r
if (!homesize)
\r
// set HOME if not set already
\r
getenv_s(&homesize, NULL, 0, "HOME");
\r
if (!homesize)
\r