Browse Source

Weather: Fixed possible NULL dereference

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

3
ExplorerPatcher/dllmain.c

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

Loading…
Cancel
Save