aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/DIBSectionBuffer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-10-20 11:06:13 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:24:36 +0100
commit2b7857283b834391266e414adcff8c20f8fe3067 (patch)
tree146051a67b20b217593298eec695aafda89134f6 /win/rfb_win32/DIBSectionBuffer.cxx
parented07250fef4e258d0d37d1c4e520db6d6c1e6fdb (diff)
downloadtigervnc-2b7857283b834391266e414adcff8c20f8fe3067.tar.gz
tigervnc-2b7857283b834391266e414adcff8c20f8fe3067.zip
Use standard library naming for exceptions
This makes things more consistent since we mix with the standard library exceptions so often.
Diffstat (limited to 'win/rfb_win32/DIBSectionBuffer.cxx')
-rw-r--r--win/rfb_win32/DIBSectionBuffer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/rfb_win32/DIBSectionBuffer.cxx b/win/rfb_win32/DIBSectionBuffer.cxx
index f6447b0d..440fe6b1 100644
--- a/win/rfb_win32/DIBSectionBuffer.cxx
+++ b/win/rfb_win32/DIBSectionBuffer.cxx
@@ -87,7 +87,7 @@ void DIBSectionBuffer::initBuffer(const PixelFormat& pf, int w, int h) {
if (!new_bitmap) {
int err = GetLastError();
- throw rdr::Win32Exception("unable to create DIB section", err);
+ throw rdr::win32_error("unable to create DIB section", err);
}
vlog.debug("recreateBuffer()");
@@ -130,7 +130,7 @@ void DIBSectionBuffer::initBuffer(const PixelFormat& pf, int w, int h) {
// Determine the *actual* DIBSection format
DIBSECTION ds;
if (!GetObject(bitmap, sizeof(ds), &ds))
- throw rdr::Win32Exception("GetObject", GetLastError());
+ throw rdr::win32_error("GetObject", GetLastError());
// Correct the "stride" of the DIB
// *** This code DWORD aligns each row - is that right???