I think you need to put "pUpdate->fUpdateAvailable = TRUE;" here.