summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-13 08:45:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-13 10:32:26 +0000
commit65596d7062ac4edadeef84cc335a585ffa942fe0 (patch)
tree016fb8e13bafe6cde357caf595b64ae9bbcbffed /vcl/win
parent22cb88b25ba9a52ca0e0eaa3fd116f5fbcc9422f (diff)
tdf#152994 actually return in this case
Change-Id: I40cb4dc4ce1fd3caa2464f92803124c3d2107afb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145433 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/salnativewidgets-luna.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx b/vcl/win/gdi/salnativewidgets-luna.cxx
index b2c71bf51b78..1c177a1b2a97 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -400,7 +400,7 @@ bool UseDarkMode()
{
static bool bOSSupportsDarkMode = OSSupportsDarkMode();
if (!bOSSupportsDarkMode)
- false;
+ return false;
HINSTANCE hUxthemeLib = LoadLibraryExW(L"uxtheme.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (!hUxthemeLib)