From 61626d912e6316a38b75da6b8f2f4a6b47c34420 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 14 Feb 2022 19:22:27 +0200 Subject: [PATCH] Weather: Fixed possible NULL dereference --- ExplorerPatcher/dllmain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 3e19fbd..ab083c8 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -3956,7 +3956,10 @@ SIZE WINAPI PeopleButton_CalculateMinimumSizeHook(void* _this, SIZE* pSz) epw = NULL; prev_total_h = 0; } - epw->lpVtbl->SetWindowCornerPreference(epw, dwWeatherWindowCornerPreference); + else + { + epw->lpVtbl->SetWindowCornerPreference(epw, dwWeatherWindowCornerPreference); + } } ReleaseSRWLockExclusive(&lock_epw); AcquireSRWLockShared(&lock_epw);