Andrew Nguyen : kernel32: Only check the buffer pointer in FormatMessageA if buffer allocation is requested .