Skip to content

Commit 7b7a921

Browse files
committed
Update solution by bytes([value])
1 parent a66ae1d commit 7b7a921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/os/uefi/bs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def hook_SetMem(ql: Qiling, address: int, params):
499499
size = params["Size"]
500500

501501
byteorder = 'little' if ql.archendian == QL_ENDIAN.EL else 'big'
502-
ql.mem.write(buffer, value.to_bytes(1, byteorder=byteorder) * size)
502+
ql.mem.write(buffer, bytes([value]) * size)
503503

504504
@dxeapi(params = {
505505
"Type" : UINT, # UINT32

0 commit comments

Comments
 (0)