diff options
author | Werner Koch <[email protected]> | 2010-03-22 12:46:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-03-22 12:46:05 +0000 |
commit | e64038608be28c14ed72b0372529762953de898f (patch) | |
tree | 3847da576d4f2e6c542ce6737179a11afcc1a487 /common/exechelp.c | |
parent | Builds again for W32. (diff) | |
download | gnupg-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.c | 8 |
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; |