aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-03-26 11:10:28 +0100
committerPierre Ossman <ossman@cendio.se>2019-03-26 11:10:28 +0100
commit78bdd1700c4e42b492286a2af25bea0825848f99 (patch)
tree626bb4c6135e35b48157eb5b1312cef3d687a046 /win/rfb_win32
parent26cd3329413872647c288e4a0f237c70a342248b (diff)
downloadtigervnc-78bdd1700c4e42b492286a2af25bea0825848f99.tar.gz
tigervnc-78bdd1700c4e42b492286a2af25bea0825848f99.zip
Add missing throws for exception
It is not enough to create an exception object, you need to throw it as well.
Diffstat (limited to 'win/rfb_win32')
-rw-r--r--win/rfb_win32/Registry.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/Registry.cxx b/win/rfb_win32/Registry.cxx
index 963a36a2..9cd50184 100644
--- a/win/rfb_win32/Registry.cxx
+++ b/win/rfb_win32/Registry.cxx
@@ -254,7 +254,7 @@ TCHAR* RegKey::getRepresentation(const TCHAR* valname) const {
TCharArray result(required);
length = ExpandEnvironmentStrings(str.buf, result.buf, required);
if (required<length)
- rdr::Exception("unable to expand environment strings");
+ throw rdr::Exception("unable to expand environment strings");
return result.takeBuf();
} else {
return tstrDup(_T(""));