From 889798290666fd2e9f84c28165c9acf96139461c Mon Sep 17 00:00:00 2001 From: elicn Date: Sun, 8 Oct 2023 20:08:43 +0300 Subject: [PATCH] Fix save / restore keys inconsistency --- qiling/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qiling/core.py b/qiling/core.py index 929c2465..4a98430b 100644 --- a/qiling/core.py +++ b/qiling/core.py @@ -694,8 +694,8 @@ class Qiling(QlCoreHooks, QlCoreStructs): if "fd" in saved_states: self.os.fd.restore(saved_states["fd"]) - if "os_context" in saved_states: - self.os.restore(saved_states["os_context"]) + if "os" in saved_states: + self.os.restore(saved_states["os"]) if "loader" in saved_states: self.loader.restore(saved_states["loader"])