diff options
author | Madeleine Nilsson <madni@cendio.se> | 2024-11-04 15:00:43 +0100 |
---|---|---|
committer | Madeleine Nilsson <madni@cendio.se> | 2024-11-21 17:38:35 +0100 |
commit | 0af41e7fed978f934f3dc6ca8c99599a212467c5 (patch) | |
tree | b59907e4e0c4bbbef45346794a890f17009c117f /win/rfb_win32/CleanDesktop.cxx | |
parent | 5b74bf1bbd4aef9f71ef76b718c79fe7b09bf5f5 (diff) | |
download | tigervnc-0af41e7fed978f934f3dc6ca8c99599a212467c5.tar.gz tigervnc-0af41e7fed978f934f3dc6ca8c99599a212467c5.zip |
Capitalize first letter in log, exception & error
The reason for this is to keep a consistency through out the project.
Diffstat (limited to 'win/rfb_win32/CleanDesktop.cxx')
-rw-r--r-- | win/rfb_win32/CleanDesktop.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/win/rfb_win32/CleanDesktop.cxx b/win/rfb_win32/CleanDesktop.cxx index 6d933b22..3eb66bd1 100644 --- a/win/rfb_win32/CleanDesktop.cxx +++ b/win/rfb_win32/CleanDesktop.cxx @@ -61,7 +61,7 @@ struct ActiveDesktop { HRESULT hr = handle->GetDesktopItem(i, &item, 0); if (hr != S_OK) { - vlog.error("unable to GetDesktopItem %d: %ld", i, hr); + vlog.error("Unable to GetDesktopItem %d: %ld", i, hr); return false; } item.fChecked = enable_; @@ -105,7 +105,7 @@ struct ActiveDesktop { if (hr == S_OK) modifyComponents = (adOptions.fActiveDesktop==0) != (enable_==false); if (hr != S_OK) { - vlog.error("failed to get/set Active Desktop options: %ld", hr); + vlog.error("Failed to get/set Active Desktop options: %ld", hr); return false; } @@ -122,7 +122,7 @@ struct ActiveDesktop { int itemCount = 0; hr = handle->GetDesktopItemCount(&itemCount, 0); if (hr != S_OK) { - vlog.error("failed to get desktop item count: %ld", hr); + vlog.error("Failed to get desktop item count: %ld", hr); return false; } for (int i=0; i<itemCount; i++) { @@ -166,7 +166,7 @@ void CleanDesktop::disableWallpaper() { try { ImpersonateCurrentUser icu; - vlog.debug("disable desktop wallpaper/Active Desktop"); + vlog.debug("Disable desktop wallpaper/Active Desktop"); // -=- First attempt to remove the wallpaper using Active Desktop try { @@ -191,7 +191,7 @@ void CleanDesktop::enableWallpaper() { ImpersonateCurrentUser icu; if (restoreActiveDesktop) { - vlog.debug("restore Active Desktop"); + vlog.debug("Restore Active Desktop"); // -=- First attempt to re-enable Active Desktop try { @@ -204,7 +204,7 @@ void CleanDesktop::enableWallpaper() { } if (restoreWallpaper) { - vlog.debug("restore desktop wallpaper"); + vlog.debug("Restore desktop wallpaper"); // -=- Then restore the standard wallpaper if required SysParamsInfo(SPI_SETDESKWALLPAPER, 0, nullptr, SPIF_SENDCHANGE); @@ -221,7 +221,7 @@ void CleanDesktop::disableEffects() { try { ImpersonateCurrentUser icu; - vlog.debug("disable desktop effects"); + vlog.debug("Disable desktop effects"); SysParamsInfo(SPI_SETFONTSMOOTHING, FALSE, nullptr, SPIF_SENDCHANGE); if (SysParamsInfo(SPI_GETUIEFFECTS, 0, &uiEffects, 0) == ERROR_CALL_NOT_IMPLEMENTED) { @@ -253,7 +253,7 @@ void CleanDesktop::enableEffects() { if (restoreEffects) { ImpersonateCurrentUser icu; - vlog.debug("restore desktop effects"); + vlog.debug("Restore desktop effects"); RegKey desktopCfg; desktopCfg.openKey(HKEY_CURRENT_USER, "Control Panel\\Desktop"); |