Skip to content

Commit

Permalink
Fix symbol URI generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranid committed Jan 13, 2022
1 parent 067c758 commit ae8b4b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NtApiDotNet/Win32/DllDebugData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ public string GetSymbolPath(string symbol_url)
}

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

return new Uri(uri, string.Join("/", uri.AbsolutePath, encoded_name, IdentiferPath, encoded_name)).ToString();
return new Uri(uri, base_path).ToString();
}

private const uint CV_RSDS_MAGIC = 0x53445352;
Expand Down

0 comments on commit ae8b4b2

Please sign in to comment.