diff options
Diffstat (limited to 'win/rfb_win32/ComputerName.h')
-rw-r--r-- | win/rfb_win32/ComputerName.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/rfb_win32/ComputerName.h b/win/rfb_win32/ComputerName.h index 110caa59..345ff0d7 100644 --- a/win/rfb_win32/ComputerName.h +++ b/win/rfb_win32/ComputerName.h @@ -20,17 +20,17 @@ #define __RFB_WIN32_COMPUTERNAME_H__ #include <windows.h> -#include <rfb_win32/TCharArray.h> +#include <rfb/util.h> namespace rfb { namespace win32 { // Get the computer name - struct ComputerName : TCharArray { - ComputerName() : TCharArray(MAX_COMPUTERNAME_LENGTH+1) { + struct ComputerName : CharArray { + ComputerName() : CharArray(MAX_COMPUTERNAME_LENGTH+1) { ULONG namelength = MAX_COMPUTERNAME_LENGTH+1; if (!GetComputerName(buf, &namelength)) - _tcscpy(buf, _T("")); + strcpy(buf, ""); } }; |