|
85 | 85 | if (-not $r.Report) { $failures += "a fault exit code was not reported" } |
86 | 86 | else { |
87 | 87 | Write-Host $r.Report |
88 | | - if ($r.Report -notmatch "launcher: the program ended with exit code 0xC0000135 after") { $failures += "the report does not say what happened to the program" } |
89 | | - if ($r.Report -notmatch "Crash Lc0000135") { $failures += "the report has no signature in its title" } |
| 88 | + if ($r.Report -notmatch "Crash Lc0000135") { $failures += "the report has no signature in its title" } |
90 | 89 | foreach ($secret in $env:USERNAME, $env:USERPROFILE, "bid.catch", "203.0.113.7", "hunter2", "2026-10-21") { |
91 | 90 | if ($r.Report -match [regex]::Escape($secret)) { $failures += "the report still holds '$secret'" } |
92 | 91 | } |
@@ -119,7 +118,14 @@ jobs: |
119 | 118 | for ($i = $text.IndexOf("mscoree.dll", $ordinal); $i -ge 0; $i = $text.IndexOf("mscoree.dll", $i + 1, $ordinal)) { |
120 | 119 | [Array]::Copy($replacement, 0, $bytes, $i, $replacement.Length); $found++ |
121 | 120 | } |
122 | | - if (-not $found) { $failures += "the launcher does not import mscoree.dll, so the missing-library check has nothing to patch" } |
| 121 | + if (-not $found) { |
| 122 | + $failures += "the launcher does not import mscoree.dll, so the missing-library check has nothing to patch" |
| 123 | + $at = $text.IndexOf("mscoree", [StringComparison]::OrdinalIgnoreCase) |
| 124 | + Write-Host "mscoree (any case) at $at" |
| 125 | + if ($at -ge 0) { Write-Host ("around it: " + ($text.Substring([Math]::Max(0, $at - 8), 32) -replace '[^\x20-\x7e]', '.')) } |
| 126 | + $pe = [BitConverter]::ToInt32($bytes, 0x3C) |
| 127 | + Write-Host ("e_lfanew=$pe machine=0x{0:X} optional magic=0x{1:X}" -f [BitConverter]::ToUInt16($bytes, $pe + 4), [BitConverter]::ToUInt16($bytes, $pe + 24)) |
| 128 | + } |
123 | 129 | [System.IO.File]::WriteAllBytes("$PWD\child\patched.exe", $bytes) |
124 | 130 | foreach ($case in @(@{ file = "child\patched.exe"; want = $true }, @{ file = "launcher-out\lapsecoin-launch.exe"; want = $false })) { |
125 | 131 | $env:LAPSECOIN_IMPORTS_TEST = "$PWD\$($case.file)" |
|
0 commit comments