diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-20 21:37:21 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-20 21:37:21 (GMT) |
commit | e75152402a384934314881de925e7e00328bbe0a (patch) | |
tree | b4fbf1776de23c1244661c3576a61a20b8aaafd0 | |
parent | 1e8a4963fc83ef2d17c80687752f64b435fc7d17 (diff) | |
parent | fe0c007b96975e556e33a4fd348a31fa23465ac9 (diff) | |
download | tcl-e75152402a384934314881de925e7e00328bbe0a.zip tcl-e75152402a384934314881de925e7e00328bbe0a.tar.gz tcl-e75152402a384934314881de925e7e00328bbe0a.tar.bz2 |
Merge trunk
-rw-r--r-- | win/tclWinConsole.c | 4 | ||||
-rw-r--r-- | win/tclWinPipe.c | 2 | ||||
-rw-r--r-- | win/tclWinSock.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c index eb13150..2555387 100644 --- a/win/tclWinConsole.c +++ b/win/tclWinConsole.c @@ -229,7 +229,7 @@ ReadConsoleBytes( * will run and take whatever action it deems appropriate. */ do { - result = ReadConsole(hConsole, lpBuffer, nbytes / sizeof(WCHAR), &ntchars, + result = ReadConsoleW(hConsole, lpBuffer, nbytes / sizeof(WCHAR), &ntchars, NULL); } while (result && ntchars == 0 && GetLastError() == ERROR_OPERATION_ABORTED); if (nbytesread != NULL) { @@ -248,7 +248,7 @@ WriteConsoleBytes( DWORD ntchars; BOOL result; - result = WriteConsole(hConsole, lpBuffer, nbytes / sizeof(WCHAR), &ntchars, + result = WriteConsoleW(hConsole, lpBuffer, nbytes / sizeof(WCHAR), &ntchars, NULL); if (nbyteswritten != NULL) { *nbyteswritten = ntchars * sizeof(WCHAR); diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index 82a340c..96a6e93 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1205,7 +1205,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) { diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 77929f0..8e2723d 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -3247,7 +3247,7 @@ SocketProc( #ifdef _WIN64 GetWindowLongPtrW(hwnd, GWLP_USERDATA); #else - GetWindowLong(hwnd, GWL_USERDATA); + GetWindowLongW(hwnd, GWL_USERDATA); #endif switch (message) { @@ -3265,7 +3265,7 @@ SocketProc( SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) ((LPCREATESTRUCT)lParam)->lpCreateParams); #else - SetWindowLong(hwnd, GWL_USERDATA, + SetWindowLongW(hwnd, GWL_USERDATA, (LONG) ((LPCREATESTRUCT)lParam)->lpCreateParams); #endif break; |