aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/Clipboard.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-11-22 17:03:40 +0100
committerPierre Ossman <ossman@cendio.se>2024-11-22 17:03:40 +0100
commit44f67714bc53f33764da26d007b5dc4e8045473c (patch)
treed4f53e73219ee6593570ba626096551e6be48b1a /win/rfb_win32/Clipboard.cxx
parent213c12c4f12101b560d532416788914b9f67399a (diff)
downloadtigervnc-44f67714bc53f33764da26d007b5dc4e8045473c.tar.gz
tigervnc-44f67714bc53f33764da26d007b5dc4e8045473c.zip
Capitalize even more logging and exceptions
Diffstat (limited to 'win/rfb_win32/Clipboard.cxx')
-rw-r--r--win/rfb_win32/Clipboard.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/Clipboard.cxx b/win/rfb_win32/Clipboard.cxx
index 2a2be1d5..8fdc79c8 100644
--- a/win/rfb_win32/Clipboard.cxx
+++ b/win/rfb_win32/Clipboard.cxx
@@ -129,7 +129,7 @@ Clipboard::setClipText(const char* text) {
// - Firstly, we must open the clipboard
if (!OpenClipboard(getHandle()))
- throw rdr::win32_error("unable to open Win32 clipboard", GetLastError());
+ throw rdr::win32_error("Unable to open Win32 clipboard", GetLastError());
// - Convert the supplied clipboard text into UTF-16 format with CRLF
std::string filtered(convertCRLF(text));
@@ -144,11 +144,11 @@ Clipboard::setClipText(const char* text) {
// - Next, we must clear out any existing data
if (!EmptyClipboard())
- throw rdr::win32_error("unable to empty Win32 clipboard", GetLastError());
+ throw rdr::win32_error("Unable to empty Win32 clipboard", GetLastError());
// - Set the new clipboard data
if (!SetClipboardData(CF_UNICODETEXT, clip_handle))
- throw rdr::win32_error("unable to set Win32 clipboard", GetLastError());
+ throw rdr::win32_error("Unable to set Win32 clipboard", GetLastError());
clip_handle = nullptr;
vlog.debug("Set clipboard");