Cant pass byte strings to WinDLL()

This commit is contained in:
Kovid Goyal 2019-12-20 07:38:49 +05:30
parent 0f4506ff39
commit e3bd164cee
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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()