Browse Source

Weather: Fixed possible NULL dereference

pull/886/head 22000.493.42.11_61626d9
Valentin Radu 4 years ago
parent
commit
61626d912e
  1. 5
      ExplorerPatcher/dllmain.c

5
ExplorerPatcher/dllmain.c

@ -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);

Loading…
Cancel
Save