mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Cant pass byte strings to WinDLL()
This commit is contained in:
parent
0f4506ff39
commit
e3bd164cee
1 changed files with 1 additions and 1 deletions
|
|
@ -1016,7 +1016,7 @@ def flush_clipboard(self):
|
|||
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…
Reference in a new issue