Skip to content

Commit

Permalink
Fix MPC 'LRESULT' error (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Jan 31, 2024
1 parent 0c0df60 commit 2fcb1e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncplay/players/mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def OnCopyData(self, hwnd, msg, wparam, lparam):
pCDS = ctypes.cast(lparam, self.__PCOPYDATASTRUCT)
# print "API:\tin>\t 0x%X\t" % int(pCDS.contents.dwData), ctypes.wstring_at(pCDS.contents.lpData)
self.__mpcApi.handleCommand(pCDS.contents.dwData, ctypes.wstring_at(pCDS.contents.lpData))
return 0

def SendCommand(self, cmd, message=''):
# print "API:\t<out\t 0x%X\t" % int(cmd), message
Expand Down Expand Up @@ -522,4 +523,4 @@ def getExpandedPath(path):
return path
elif os.path.isfile(path + "\\" + mpc_executable_filename):
path += "\\" + mpc_executable_filename
return path
return path

0 comments on commit 2fcb1e4

Please sign in to comment.