mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-17 08:14:37 -04:00
PreLoggingCrashLog returned its LongPath straight out, so on Windows the crash dialog named \\?\C:\Users\...\Log202608.log. The prefix is for the Win32 API, not for a person being asked to find the file and attach it to a bug report. Return PathWithoutPrefix instead, and use it for the LibationFiles line inside the record for the same reason. A test now pins that the reported path carries no prefix and is usable as-is; on Linux the two forms are identical, which is why local runs could not see this and the Windows CI job could. While in there: ReplaceInstallFile moved the old file aside and then wrote the new one, so a copy that failed after the move left nothing at all where a file used to be. Put the old one back before reporting the failure. Co-authored-by: rmcrackan <rmcrackan@gmail.com>