Fix a warning.

This commit is contained in:
OBattler
2025-02-03 03:08:01 +01:00
parent af6d8819a5
commit 2d65663ff6

View File

@@ -172,7 +172,9 @@ WindowsRawInputFilter::nativeEventFilter(const QByteArray &eventType, void *mess
}
return true;
} else if (msg && msg->message == WM_SETTINGCHANGE && msg->lParam != NULL && wcscmp(L"ImmersiveColorSet", (wchar_t*)msg->lParam) == 0) {
} else if ((msg != nullptr) && (msg->message == WM_SETTINGCHANGE) &&
(((void *) msg->lParam) != nullptr) &&
(wcscmp(L"ImmersiveColorSet", (wchar_t*)msg->lParam) == 0)) {
if (!windows_is_light_theme()) {
QFile f(":qdarkstyle/dark/darkstyle.qss");