diff options
Diffstat (limited to 'common/os')
-rw-r--r-- | common/os/os.cxx | 6 | ||||
-rw-r--r-- | common/os/os.h | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/common/os/os.cxx b/common/os/os.cxx index aa9e2bae..31dbe5f3 100644 --- a/common/os/os.cxx +++ b/common/os/os.cxx @@ -44,7 +44,7 @@ static int gethomedir(char **dirp, bool userDir) uid_t uid; struct passwd *passwd; #else - TCHAR *dir; + char *dir; BOOL ret; #endif @@ -73,7 +73,7 @@ static int gethomedir(char **dirp, bool userDir) else memcpy(dir + len, "/.vnc/\0", 7); #else - dir = new TCHAR[MAX_PATH]; + dir = new char[MAX_PATH]; if (dir == NULL) return -1; @@ -89,7 +89,7 @@ static int gethomedir(char **dirp, bool userDir) if (userDir) dir[strlen(dir)+1] = '\0'; else - memcpy(dir+strlen(dir), (TCHAR *)"\\vnc\\\0", 6); + memcpy(dir+strlen(dir), "\\vnc\\\0", 6); #endif *dirp = dir; return 0; diff --git a/common/os/os.h b/common/os/os.h index d0717fd0..62acf829 100644 --- a/common/os/os.h +++ b/common/os/os.h @@ -24,9 +24,6 @@ * If HOME environment variable is set then it is used. * Otherwise home directory is obtained via getpwuid function. * - * Note for Windows: - * This functions returns array of TCHARs, not array of chars. - * * Returns: * 0 - Success * -1 - Failure @@ -38,9 +35,6 @@ int getvnchomedir(char **dirp); * If HOME environment variable is set then it is used. * Otherwise home directory is obtained via getpwuid function. * - * Note for Windows: - * This functions returns array of TCHARs, not array of chars. - * * Returns: * 0 - Success * -1 - Failure |