Patients with a history of stroke face higher long-term mortality after acute myocardial infarction, especially those with residual disability.