Cant pass byte strings to WinDLL()

This commit is contained in:
Kovid Goyal 2019-12-20 07:38:49 +05:30
parent 151fa406f6
commit 1c9342d32a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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