aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-22 12:46:05 +0000
committerWerner Koch <[email protected]>2010-03-22 12:46:05 +0000
commite64038608be28c14ed72b0372529762953de898f (patch)
tree3847da576d4f2e6c542ce6737179a11afcc1a487 /common/exechelp.c
parentBuilds again for W32. (diff)
downloadgnupg-e64038608be28c14ed72b0372529762953de898f.tar.gz
gnupg-e64038608be28c14ed72b0372529762953de898f.zip
More chnages to use estream. Add a way to replace the standard
descriptors.
Diffstat (limited to 'common/exechelp.c')
-rw-r--r--common/exechelp.c8
1 files changed, 4 insertions, 4 deletions
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;