From 9b15bde24e78857625912a915b7d9764f977c952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 25 Mar 2026 21:03:20 +0100 Subject: [PATCH] examples: Fix the child gating example --- examples/child_gating.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/child_gating.py b/examples/child_gating.py index 0e90ac5..4c7ed13 100644 --- a/examples/child_gating.py +++ b/examples/child_gating.py @@ -44,11 +44,11 @@ class Application: print("✔ create_script()") script = session.create_script( """\ -Interceptor.attach(Module.getExportByName(null, 'open'), { - onEnter: function (args) { +Interceptor.attach(Module.getGlobalExportByName('open'), { + onEnter(args) { send({ type: 'open', - path: Memory.readUtf8String(args[0]) + path: args[0].readUtf8String() }); } });