aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
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 /common/rfb
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 'common/rfb')
-rw-r--r--common/rfb/WinPasswdValidator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/rfb/WinPasswdValidator.cxx b/common/rfb/WinPasswdValidator.cxx
index f07c27e8..18f113cd 100644
--- a/common/rfb/WinPasswdValidator.cxx
+++ b/common/rfb/WinPasswdValidator.cxx
@@ -24,7 +24,6 @@
#include <rfb/WinPasswdValidator.h>
#include <windows.h>
-#include <tchar.h>
using namespace rfb;
@@ -33,9 +32,9 @@ bool WinPasswdValidator::validateInternal(rfb::SConnection* /*sc*/,
const char* username,
const char* password)
{
- TCHAR* user = (TCHAR*) strDup(username);
- TCHAR* pass = (TCHAR*) strDup(password);
- TCHAR* domain = (TCHAR*) strDup(".");
+ char* user = strDup(username);
+ char* pass = strDup(password);
+ char* domain = strDup(".");
HANDLE handle;
BOOL ret = LogonUser(user, domain, pass, LOGON32_LOGON_NETWORK,