[vhd] fix broken save to VHD cheat mode

* vhd_save wasn't static, which of course created all kind of issues
  when the VHD save thread tried to use it while it was being freed...
* Closes #591
This commit is contained in:
Pete Batard 2015-09-04 14:15:22 +01:00
parent 4788ee25d2
commit ff9eae4e6d
3 changed files with 12 additions and 9 deletions

View file

@ -1975,7 +1975,7 @@ DWORD WINAPI SaveImageThread(void* param)
{
BOOL s;
DWORD rSize, wSize;
VHD_SAVE *vhd_save = param;
VHD_SAVE *vhd_save = (VHD_SAVE*)param;
HANDLE hPhysicalDrive = INVALID_HANDLE_VALUE;
HANDLE hDestImage = INVALID_HANDLE_VALUE;
LARGE_INTEGER li;