if(text && text[0]=='[') return;
SetDlgItemText(statuswnd, IDC_INFO, strdup(text));
int t;
if(text && text[0]=='[') return;
SetDlgItemText(statuswnd, IDC_INFO, strdup(text));
int t;
SendDlgItemMessage(statuswnd, IDC_PROGRESS, PBM_SETPOS, ++progress_pos, 0);
processMessages();
Sleep(30);
SendDlgItemMessage(statuswnd, IDC_PROGRESS, PBM_SETPOS, ++progress_pos, 0);
processMessages();
Sleep(30);
SendMessage(dialog, PSM_CANCELTOCLOSE, 0, 0); //makes wine display a warning
SetDlgItemText(hwnd, IDC_TITLE, "Installing files...");
statuswnd = hwnd;
SendMessage(dialog, PSM_CANCELTOCLOSE, 0, 0); //makes wine display a warning
SetDlgItemText(hwnd, IDC_TITLE, "Installing files...");
statuswnd = hwnd;
- SendDlgItemMessage(hwnd, IDC_PROGRESS, PBM_SETRANGE, 0, (LPARAM)MAKELONG(0,54));
+ SendDlgItemMessage(hwnd, IDC_PROGRESS, PBM_SETRANGE, 0, (LPARAM)MAKELONG(0,40));
progress_pos = 0;
SendDlgItemMessage(hwnd, IDC_PROGRESS, PBM_SETPOS, progress_pos, 0);
progress_pos = 0;
SendDlgItemMessage(hwnd, IDC_PROGRESS, PBM_SETPOS, progress_pos, 0);
- int success = unpack_archive(crndata, install_path, PropertyArchiveStatus);
+ int success = unpack_archive(crndata, crndata_len, install_path, PropertyArchiveStatus);
return 0;
}
return PropertySheetFuncCommon(hwnd, message, wParam, lParam, PSWIZB_BACK|PSWIZB_NEXT);
return 0;
}
return PropertySheetFuncCommon(hwnd, message, wParam, lParam, PSWIZB_BACK|PSWIZB_NEXT);