Fix MPC 'LRESULT' error (#664)

This commit is contained in:
Etoh 2024-01-31 20:44:38 +00:00 committed by GitHub
parent 0c0df605d5
commit 2fcb1e4f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,7 @@ class MpcHcApi:
pCDS = ctypes.cast(lparam, self.__PCOPYDATASTRUCT) pCDS = ctypes.cast(lparam, self.__PCOPYDATASTRUCT)
# print "API:\tin>\t 0x%X\t" % int(pCDS.contents.dwData), ctypes.wstring_at(pCDS.contents.lpData) # 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)) self.__mpcApi.handleCommand(pCDS.contents.dwData, ctypes.wstring_at(pCDS.contents.lpData))
return 0
def SendCommand(self, cmd, message=''): def SendCommand(self, cmd, message=''):
# print "API:\t<out\t 0x%X\t" % int(cmd), message # print "API:\t<out\t 0x%X\t" % int(cmd), message
@ -522,4 +523,4 @@ class MPCHCAPIPlayer(BasePlayer):
return path return path
elif os.path.isfile(path + "\\" + mpc_executable_filename): elif os.path.isfile(path + "\\" + mpc_executable_filename):
path += "\\" + mpc_executable_filename path += "\\" + mpc_executable_filename
return path return path