1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-24 15:22:22 +01:00

Weather: Fixed possible NULL dereference

This commit is contained in:
Valentin Radu 2022-02-14 19:22:27 +02:00
parent 09f5390a23
commit 61626d912e

View File

@ -3956,7 +3956,10 @@ SIZE WINAPI PeopleButton_CalculateMinimumSizeHook(void* _this, SIZE* pSz)
epw = NULL; epw = NULL;
prev_total_h = 0; prev_total_h = 0;
} }
epw->lpVtbl->SetWindowCornerPreference(epw, dwWeatherWindowCornerPreference); else
{
epw->lpVtbl->SetWindowCornerPreference(epw, dwWeatherWindowCornerPreference);
}
} }
ReleaseSRWLockExclusive(&lock_epw); ReleaseSRWLockExclusive(&lock_epw);
AcquireSRWLockShared(&lock_epw); AcquireSRWLockShared(&lock_epw);