1
1

Win32: WM_SETTINGCHANGE lParam Check for NULL

Check that lParam is non-NULL in WM_SETTINGCHANGE message handler.

See D14867 for details.

Differential Revision: https://developer.blender.org/D14867

Reviewed by Jesse Yurkovich
This commit is contained in:
2022-05-05 17:48:55 -07:00
parent 108963d508
commit fcbd81fb0f

View File

@@ -1987,7 +1987,8 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
}
break;
case WM_SETTINGCHANGE:
if (wcscmp(LPCWSTR(lParam), L"ImmersiveColorSet") == 0) {
/* Microsoft: "Note that some applications send this message with lParam set to NULL" */
if ((lParam != NULL) && (wcscmp(LPCWSTR(lParam), L"ImmersiveColorSet") == 0)) {
window->ThemeRefresh();
}
break;