mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
384678163a
commit
a3da57a7b1
@ -36,7 +36,7 @@ def get_hwnd(widget=None):
|
|||||||
def serialize_hwnd(hwnd):
|
def serialize_hwnd(hwnd):
|
||||||
if hwnd is None:
|
if hwnd is None:
|
||||||
return b''
|
return b''
|
||||||
return struct.pack(b'=' + (b'B4sQ' if is64bit else b'I'), 4, b'HWND', int(hwnd))
|
return struct.pack(b'=B4s' + (b'Q' if is64bit else b'I'), 4, b'HWND', int(hwnd))
|
||||||
|
|
||||||
def serialize_binary(key, val):
|
def serialize_binary(key, val):
|
||||||
key = key.encode('ascii') if not isinstance(key, bytes) else key
|
key = key.encode('ascii') if not isinstance(key, bytes) else key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user