Skip to content

Commit 958fb2a

Browse files
committed
fix(DotNetDllPathPatcher): correct dll path construction in Update-Exe
The previous path construction was missing a relative path indicator (.) which could cause issues when resolving the dll path. The change ensures proper relative path resolution by prefixing with "./".
1 parent c928c91 commit 958fb2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Apps/KeyAsio/DotNetDllPathPatcher.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Update-Exe {
2424
throw [PathTooLongException] 'old dll path is too long'
2525
}
2626

27-
$new_dll_path = "$target_path$separator$dll_name"
27+
$new_dll_path = ".$separator$target_path$separator$dll_name"
2828
$new_bytes = [Encoding]::UTF8.GetBytes("$new_dll_path`0")
2929
Write-Host "Dll path Change to `"$new_dll_path`""
3030
if ($new_bytes.Count -gt $max_path_length) {

0 commit comments

Comments
 (0)