1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-09 12:11:44 +00:00

nxdt_host.py: small fixes.

This commit is contained in:
Pablo Curiel 2021-12-01 13:18:31 +01:00
parent de1ba425a1
commit ffd2d8f8a4

View file

@ -927,7 +927,7 @@ def usbCommandHandler():
(cmd_id == USB_CMD_SEND_FILE_PROPERTIES and cmd_block_size != USB_CMD_BLOCK_SIZE_SEND_FILE_PROPERTIES) or \
(cmd_id == USB_CMD_SEND_NSP_HEADER and not cmd_block_size):
g_logger.error('Invalid command block size for command ID %02X! (0x%X).\n' % (cmd_id, cmd_block_size))
usbSendStatus(USB_STATUS_MALFORMED_COMMAND)
usbSendStatus(USB_STATUS_MALFORMED_CMD)
continue
# Run command handler function.
@ -1038,7 +1038,7 @@ def uiInitialize():
tlb_fp.close()
del_tlb = True
g_tlb = cc.GetModule('TASKBAR_LIB_PATH')
g_tlb = cc.GetModule(TASKBAR_LIB_PATH)
g_taskbar = cc.CreateObject('{56FDF344-FD6D-11D0-958A-006097C9A090}', interface=g_tlb.ITaskbarList3)
g_taskbar.HrInit()