aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/CleanDesktop.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/CleanDesktop.cxx')
-rw-r--r--win/rfb_win32/CleanDesktop.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/CleanDesktop.cxx b/win/rfb_win32/CleanDesktop.cxx
index d2d6d2d1..6d933b22 100644
--- a/win/rfb_win32/CleanDesktop.cxx
+++ b/win/rfb_win32/CleanDesktop.cxx
@@ -45,7 +45,7 @@ struct ActiveDesktop {
HRESULT result = CoCreateInstance(CLSID_ActiveDesktop, nullptr, CLSCTX_INPROC_SERVER,
IID_IActiveDesktop, (PVOID*)&handle);
if (result != S_OK)
- throw rdr::SystemException("failed to contact Active Desktop", result);
+ throw rdr::Win32Exception("failed to contact Active Desktop", HRESULT_CODE(result));
}
~ActiveDesktop() {
if (handle)