Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions qiling/os/windows/fiber.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def alloc(self, cb: Optional[int] = None) -> int:

def free(self, idx: int) -> bool:
if idx not in self.fibers:
self.last_error = ERROR_INVALID_PARAMETER
self.ql.os.last_error = ERROR_INVALID_PARAMETER
return False

fiber = self.fibers[idx]
Expand Down Expand Up @@ -99,7 +99,7 @@ def __invoke_callback(self, fiber: Fiber):

def set(self, idx: int, data: int) -> bool:
if idx not in self.fibers:
self.last_error = ERROR_INVALID_PARAMETER
self.ql.os.last_error = ERROR_INVALID_PARAMETER
return False

self.fibers[idx].data = data
Expand All @@ -108,7 +108,7 @@ def set(self, idx: int, data: int) -> bool:

def get(self, idx: int) -> int:
if idx not in self.fibers:
self.last_error = ERROR_INVALID_PARAMETER
self.ql.os.last_error = ERROR_INVALID_PARAMETER
return 0

return self.fibers[idx].data
Loading