Patent foramen ovale increases the risk of acute ischemic stroke in patients with acute pulmonary embolism leading to right ventricular dysfunction.