Checking for a return value with FormatMessage; if the call fails, there's no guarantee that the buffer will be non-null.