Skip to content

Commit

Permalink
windows: Revive the system session
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Aug 26, 2024
1 parent 694118c commit 1f9e24e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/windows/windows-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,23 @@ namespace Frida {
protected override async AgentSessionProvider create_system_session_provider (Cancellable? cancellable,
out DBusConnection connection) throws Error, IOError {
var path_template = agent.get_path_template ();
var agent_path = path_template.expand (sizeof (void *) == 8 ? "64" : "32");

unowned string arch;
switch (Gum.NATIVE_CPU) {
case ARM64:
arch = "arm64";
break;
case AMD64:
arch = "x86_64";
break;
case IA32:
arch = "x86";
break;
default:
assert_not_reached ();
}

var agent_path = path_template.expand (arch);

system_session_container = yield AgentContainer.create (agent_path, cancellable);

Expand Down

0 comments on commit 1f9e24e

Please sign in to comment.