diff options
Diffstat (limited to '')
-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; |