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:
|
||||
if self.clipboard().ownsClipboard():
|
||||
import ctypes
|
||||
ctypes.WinDLL(b'ole32.dll').OleFlushClipboard()
|
||||
ctypes.WinDLL('ole32.dll').OleFlushClipboard()
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user