summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 07:44:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 07:44:09 (GMT)
commit52f7f8443ded7a957803e75eea737fdaf04234db (patch)
tree25af82e23e90dd325ce0c5edd94a905dc053bec7 /win/tclWinChan.c
parentbb14939c6492e648fedc29e6da35641e98b9c824 (diff)
parent3a94aaa6cb69b47612e4f299ef44bbb6d8869827 (diff)
downloadtcl-52f7f8443ded7a957803e75eea737fdaf04234db.zip
tcl-52f7f8443ded7a957803e75eea737fdaf04234db.tar.gz
tcl-52f7f8443ded7a957803e75eea737fdaf04234db.tar.bz2
Merge 8.6. Missing cast in Tcl_WinTCharToUtf() macro (when compiling without -DUNICODE)
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 3b6e4e4..d300269 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -946,7 +946,7 @@ TclpOpenFileChannel(
flags = FILE_ATTRIBUTE_READONLY;
}
} else {
- flags = GetFileAttributes(nativeName);
+ flags = GetFileAttributesW(nativeName);
if (flags == 0xFFFFFFFF) {
flags = 0;
}
@@ -962,7 +962,7 @@ TclpOpenFileChannel(
* Now we get to create the file.
*/
- handle = CreateFile(nativeName, accessMode, shareMode,
+ handle = CreateFileW(nativeName, accessMode, shareMode,
NULL, createMode, flags, (HANDLE) NULL);
if (handle == INVALID_HANDLE_VALUE) {