How do McEwan and Sharp share the same parents if their mother was married to a different man when Sharp was born?

While married to a man who would die in combat, their mother had an affair with a man (their father) she would later marry. That affair produced Sharp, and they proceeded to have another child, McEwan, following their marriage.