Skip to content

Commit

Permalink
Code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
PCigales authored Sep 25, 2024
1 parent d71cc43 commit 1df24a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DLNAmpcRenderer.py
Original file line number Diff line number Diff line change
@@ -834,7 +834,7 @@ def send_command(self, cmd_code, cmd_msg):
if not self.wnd_mpc:
return
buf = ctypes.create_unicode_buffer(cmd_msg)
copydata = COPYDATA_STRUCT(ULONG_PTR(cmd_code), DWORD(ctypes.sizeof(buf)), ctypes.cast(buf, PVOID))
copydata = COPYDATA_STRUCT(cmd_code, ctypes.sizeof(buf), ctypes.cast(buf, PVOID))
user32.SendMessageW(self.wnd_mpc, 0x4a, self.wnd_ctrl, ctypes.addressof(copydata))
self.logger.log('Lecteur - commande envoyée - code:%s - message:%s' % (hex(cmd_code), cmd_msg), 2)

0 comments on commit 1df24a8

Please sign in to comment.