summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 13:53:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 13:53:39 (GMT)
commit865ea5e678412f23106c8374c3113169e35439f9 (patch)
treeaf78b8a6b2ec5871ea8f2305e3ae5c62f102753a /win/tclWinPipe.c
parent775e9aac009c6cd4a3cddbf67de9feac451f5662 (diff)
downloadtcl-865ea5e678412f23106c8374c3113169e35439f9.zip
tcl-865ea5e678412f23106c8374c3113169e35439f9.tar.gz
tcl-865ea5e678412f23106c8374c3113169e35439f9.tar.bz2
More Win32 API impovals.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index ed4bc22..26f0b3e 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1207,7 +1207,7 @@ HasConsole(void)
{
HANDLE handle;
- handle = CreateFileA("CONOUT$", GENERIC_WRITE, FILE_SHARE_WRITE,
+ handle = CreateFileW(L"CONOUT$", GENERIC_WRITE, FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (handle != INVALID_HANDLE_VALUE) {