diff --git a/common/arch.h b/common/arch.h index 5ac5e954..a380511b 100644 --- a/common/arch.h +++ b/common/arch.h @@ -91,9 +91,13 @@ typedef tbus tintptr; #if defined(_WIN32) typedef unsigned short twchar; typedef unsigned int tsock; +typedef unsigned __int64 tui64; +typedef signed __int64 tsi64; #else typedef int twchar; typedef int tsock; +typedef unsigned long long tui64; +typedef signed long long tsi64; #endif #endif diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index 9e57217f..c354be6b 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -314,6 +314,11 @@ main(int argc, char** argv) g_writeln("unusable long size, must be 4 or 8"); return 0; } + if (sizeof(tui64) != 8) + { + g_writeln("unusable tui64 size, must be 8"); + return 0; + } #if defined(_WIN32) run_as_service = 1; if (argc == 2) @@ -324,7 +329,7 @@ main(int argc, char** argv) { g_writeln(""); g_writeln("xrdp: A Remote Desktop Protocol server."); - g_writeln("Copyright (C) Jay Sorg 2004-2009"); + g_writeln("Copyright (C) Jay Sorg 2004-2010"); g_writeln("See http://xrdp.sourceforge.net for more information."); g_writeln(""); g_writeln("Usage: xrdp [options]"); @@ -463,7 +468,7 @@ main(int argc, char** argv) { g_writeln(""); g_writeln("xrdp: A Remote Desktop Protocol server."); - g_writeln("Copyright (C) Jay Sorg 2004-2009"); + g_writeln("Copyright (C) Jay Sorg 2004-2010"); g_writeln("See http://xrdp.sourceforge.net for more information."); g_writeln(""); g_writeln("Usage: xrdp [options]"); @@ -478,7 +483,7 @@ main(int argc, char** argv) { g_writeln(""); g_writeln("xrdp: A Remote Desktop Protocol server."); - g_writeln("Copyright (C) Jay Sorg 2004-2009"); + g_writeln("Copyright (C) Jay Sorg 2004-2010"); g_writeln("See http://xrdp.sourceforge.net for more information."); g_writeln("Version 0.5.0"); g_writeln("");