mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Cant pass byte strings to WinDLL()
This commit is contained in:
parent
151fa406f6
commit
1c9342d32a
@ -1016,7 +1016,7 @@ class Application(QApplication):
|
|||||||
try:
|
try:
|
||||||
if self.clipboard().ownsClipboard():
|
if self.clipboard().ownsClipboard():
|
||||||
import ctypes
|
import ctypes
|
||||||
ctypes.WinDLL(b'ole32.dll').OleFlushClipboard()
|
ctypes.WinDLL('ole32.dll').OleFlushClipboard()
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user