aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/TsSessions.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-10 21:24:21 +0100
committerPierre Ossman <ossman@cendio.se>2023-02-04 14:03:13 +0100
commit77f0a61ec8f1488d6042b1370444bb2612604292 (patch)
tree76a965e971e87e53abd0f7cb45c1baa7fbe52e99 /win/rfb_win32/TsSessions.cxx
parent2047dae22fb862ff43309ebb4fe2b9e7d6ce6153 (diff)
downloadtigervnc-77f0a61ec8f1488d6042b1370444bb2612604292.tar.gz
tigervnc-77f0a61ec8f1488d6042b1370444bb2612604292.zip
Get rid of TCHAR magic
We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
Diffstat (limited to 'win/rfb_win32/TsSessions.cxx')
-rw-r--r--win/rfb_win32/TsSessions.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/rfb_win32/TsSessions.cxx b/win/rfb_win32/TsSessions.cxx
index 9b1632f5..ad30abf4 100644
--- a/win/rfb_win32/TsSessions.cxx
+++ b/win/rfb_win32/TsSessions.cxx
@@ -23,7 +23,6 @@
#include <rfb_win32/TsSessions.h>
#include <rfb/LogWriter.h>
#include <rdr/Exception.h>
-#include <tchar.h>
#include <wtsapi32.h>
static rfb::LogWriter vlog("TsSessions");
@@ -57,7 +56,7 @@ namespace win32 {
// Try to reconnect our session to the console
ConsoleSessionId console;
vlog.info("Console session is %lu", console.id);
- if (!WTSConnectSession(sessionId, console.id, (PTSTR)_T(""), 0))
+ if (!WTSConnectSession(sessionId, console.id, (PTSTR)"", 0))
throw rdr::SystemException("Unable to connect session to Console", GetLastError());
// Lock the newly connected session, for security