the code beneath LOG_WARNING and friends is opaque, and may accidentally replace the value of GetLastError before we have a chance to render it.