Windows uses only the first three characters of prefix in tempnam(), so only use first 3 chars to find if error is logged