diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-10 21:24:21 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-04 14:03:13 +0100 |
commit | 77f0a61ec8f1488d6042b1370444bb2612604292 (patch) | |
tree | 76a965e971e87e53abd0f7cb45c1baa7fbe52e99 /common/rfb | |
parent | 2047dae22fb862ff43309ebb4fe2b9e7d6ce6153 (diff) | |
download | tigervnc-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.cxx | 7 |
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, |