|
|
@ -938,16 +938,13 @@ BOOL CALLBACK UruTOSDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l |
|
|
|
hsUNIXStream stream; |
|
|
|
hsUNIXStream stream; |
|
|
|
if (stream.Open("TOS.txt", "rt")) |
|
|
|
if (stream.Open("TOS.txt", "rt")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
char* eulaData = NULL; |
|
|
|
uint32_t dataLen = stream.GetSizeLeft(); |
|
|
|
unsigned dataLen = stream.GetSizeLeft(); |
|
|
|
char* eulaData = new char[dataLen + 1]; |
|
|
|
|
|
|
|
memset(eulaData, 0, dataLen + 1); |
|
|
|
eulaData = new char[dataLen + 1]; |
|
|
|
|
|
|
|
ZeroMemory(eulaData, dataLen + 1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stream.Read(dataLen, eulaData); |
|
|
|
stream.Read(dataLen, eulaData); |
|
|
|
|
|
|
|
|
|
|
|
SetDlgItemText(hwndDlg, IDC_URULOGIN_EULATEXT, eulaData); |
|
|
|
plString str = plString::Steal(eulaData); |
|
|
|
delete [] eulaData; |
|
|
|
SetDlgItemTextW(hwndDlg, IDC_URULOGIN_EULATEXT, _TEMP_CONVERT_TO_WCHAR_T(str)); |
|
|
|
} |
|
|
|
} |
|
|
|
else // no TOS found, go ahead
|
|
|
|
else // no TOS found, go ahead
|
|
|
|
EndDialog(hwndDlg, true); |
|
|
|
EndDialog(hwndDlg, true); |
|
|
|