aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/TsSessions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/TsSessions.cxx')
-rw-r--r--win/rfb_win32/TsSessions.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/rfb_win32/TsSessions.cxx b/win/rfb_win32/TsSessions.cxx
index ad30abf4..a8602ad2 100644
--- a/win/rfb_win32/TsSessions.cxx
+++ b/win/rfb_win32/TsSessions.cxx
@@ -35,7 +35,7 @@ namespace win32 {
if (processId == (DWORD)-1)
processId = GetCurrentProcessId();
if (!ProcessIdToSessionId(GetCurrentProcessId(), &id))
- throw rdr::SystemException("ProcessIdToSessionId", GetLastError());
+ throw rdr::Win32Exception("ProcessIdToSessionId", GetLastError());
}
ProcessSessionId mySessionId;
@@ -57,7 +57,7 @@ namespace win32 {
ConsoleSessionId console;
vlog.info("Console session is %lu", console.id);
if (!WTSConnectSession(sessionId, console.id, (PTSTR)"", 0))
- throw rdr::SystemException("Unable to connect session to Console", GetLastError());
+ throw rdr::Win32Exception("Unable to connect session to Console", GetLastError());
// Lock the newly connected session, for security
LockWorkStation();