summaryrefslogtreecommitdiff
path: root/transform.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-10-03 18:22:58 -0400
committerBrian Potchik <brian@vector35.com>2025-10-03 18:22:58 -0400
commit183ef5e2f0ba6124efac98efba67757f1e8b2aa9 (patch)
treef6d1edf9de197ebdf63f969816c5695e820140f2 /transform.cpp
parent92d75df37c76813ac4a71e35096dcb31ac1b18af (diff)
Update IMG4 transform to use DecodeWithContext and synthesize a filename for the payload.
Diffstat (limited to 'transform.cpp')
-rw-r--r--transform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/transform.cpp b/transform.cpp
index 735fb1b9..c2e51e80 100644
--- a/transform.cpp
+++ b/transform.cpp
@@ -114,8 +114,7 @@ bool Transform::DecodeWithContextCallback(void* ctxt, BNTransformContext* contex
paramMap[params[i].name] = DataBuffer(BNDuplicateDataBuffer(params[i].value));
CallbackRef<Transform> xform(ctxt);
- Ref<TransformContext> contextRef = new TransformContext(BNNewTransformContextReference(context));
- return xform->DecodeWithContext(contextRef, paramMap);
+ return xform->DecodeWithContext(new TransformContext(context), paramMap);
}