Fix some errors. Use FormatMessageA(), as we need the string in ASCII.