poiuyqwert / PyMS

Broodwar Modding Suite
47 stars 18 forks source link

PyMPQ: Crash when extracting any wav imported with WinMPQ #116

Closed Pr0nogo closed 1 year ago

Pr0nogo commented 5 years ago

Steps to reproduce: create an mpq (with PyMPQ or WinMPQ), import a wav with WinMPQ, and attempt to extract it with PyMPQ. Error posted below.

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
    return self.func(*args)
  File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\PyMPQ.pyw", line 1087, in extract
    r = SFileReadFile(fh)
  File "C:\Users\prono\Desktop\Libraries\Tools\SCBW\PyMS-master\Libs\SFmpq.py", line 379, in SFileReadFile
    if _SFmpq.SFileReadFile(file, byref(data, total_read), read-total_read, byref(r), None):
WindowsError: exception: access violation reading 0xFFFFFFFFF9CEBF3F