From e64038608be28c14ed72b0372529762953de898f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 22 Mar 2010 12:46:05 +0000 Subject: More chnages to use estream. Add a way to replace the standard descriptors. --- common/exechelp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/exechelp.c') diff --git a/common/exechelp.c b/common/exechelp.c index f71cd7349..d156cef5d 100644 --- a/common/exechelp.c +++ b/common/exechelp.c @@ -381,10 +381,10 @@ w32_open_null (int for_write) { HANDLE hfile; - hfile = CreateFile ("nul", - for_write? GENERIC_WRITE : GENERIC_READ, - FILE_SHARE_READ | FILE_SHARE_WRITE, - NULL, OPEN_EXISTING, 0, NULL); + hfile = CreateFileW (L"nul", + for_write? GENERIC_WRITE : GENERIC_READ, + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, 0, NULL); if (hfile == INVALID_HANDLE_VALUE) log_debug ("can't open `nul': %s\n", w32_strerror (-1)); return hfile; -- cgit v1.2.3