Skip to content

Commit ae8b4b2

Browse files
committed
Fix symbol URI generation.
1 parent 067c758 commit ae8b4b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

NtApiDotNet/Win32/DllDebugData.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ public string GetSymbolPath(string symbol_url)
6363
}
6464

6565
string encoded_name = Uri.EscapeDataString(filename);
66+
string base_path = uri.AbsolutePath.Trim('/');
67+
base_path = string.Join("/", base_path, encoded_name, IdentiferPath, encoded_name);
68+
if (!base_path.StartsWith("/"))
69+
base_path = "/" + base_path;
6670

67-
return new Uri(uri, string.Join("/", uri.AbsolutePath, encoded_name, IdentiferPath, encoded_name)).ToString();
71+
return new Uri(uri, base_path).ToString();
6872
}
6973

7074
private const uint CV_RSDS_MAGIC = 0x53445352;

0 commit comments

Comments
 (0)