aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/LaunchProcess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/LaunchProcess.cxx')
-rw-r--r--win/rfb_win32/LaunchProcess.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/win/rfb_win32/LaunchProcess.cxx b/win/rfb_win32/LaunchProcess.cxx
index 93bd21fe..a9e43fa6 100644
--- a/win/rfb_win32/LaunchProcess.cxx
+++ b/win/rfb_win32/LaunchProcess.cxx
@@ -22,10 +22,12 @@
#include <config.h>
#endif
+#include <core/Exception.h>
+
#include <rfb_win32/LaunchProcess.h>
#include <rfb_win32/ModuleFileName.h>
#include <rfb_win32/Win32Util.h>
-#include <rdr/Exception.h>
+
#include <stdio.h>
using namespace rfb;
@@ -53,7 +55,7 @@ void LaunchProcess::start(HANDLE userToken, bool createConsole) {
char buf[256];
HDESK desktop = GetThreadDesktop(GetCurrentThreadId());
if (!GetUserObjectInformation(desktop, UOI_NAME, buf, 256, &size))
- throw rdr::win32_error("Unable to launch process", GetLastError());
+ throw core::win32_error("Unable to launch process", GetLastError());
snprintf(desktopName, 256, "WinSta0\\%s", buf);
@@ -95,7 +97,7 @@ void LaunchProcess::start(HANDLE userToken, bool createConsole) {
flags, nullptr, nullptr,
&sinfo, &procInfo);
if (!success)
- throw rdr::win32_error("Unable to launch process", GetLastError());
+ throw core::win32_error("Unable to launch process", GetLastError());
// Wait for it to finish initialising
WaitForInputIdle(procInfo.hProcess, 15000);
@@ -119,7 +121,7 @@ bool LaunchProcess::await(DWORD timeoutMs) {
detach();
return true;
} else if (result == WAIT_FAILED) {
- throw rdr::win32_error("await() failed", GetLastError());
+ throw core::win32_error("await() failed", GetLastError());
}
return false;
}