diff options
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r-- | xdelta3/xdelta3-main.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index ddc95a2..8a1ccf8 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -713,10 +713,14 @@ main_atou (const char* arg, usize_t *xo, usize_t low, | |||
713 | 713 | ||
714 | #elif XD3_WIN32 | 714 | #elif XD3_WIN32 |
715 | #define XFNO(f) -1 | 715 | #define XFNO(f) -1 |
716 | #define XSTDOUT_XF(f) \ | 716 | #define XSTDOUT_XF(f) { \ |
717 | { (f)->file = winStartupInfo.hStdOutput; (f)->filename = "(stdout)"; } | 717 | (f)->file = GetStdHandle(STD_OUTPUT_HANDLE); \ |
718 | #define XSTDIN_XF(f) \ | 718 | (f)->filename = "(stdout)"; \ |
719 | { (f)->file = winStartupInfo.hStdInput; (f)->filename = "(stdin)"; } | 719 | } |
720 | #define XSTDIN_XF(f) { \ | ||
721 | (f)->file = GetStdHandle(STD_INPUT_HANDLE); \ | ||
722 | (f)->filename = "(stdin)"; \ | ||
723 | } | ||
720 | #endif | 724 | #endif |
721 | 725 | ||
722 | static void | 726 | static void |