mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Suppress some more error message boxes.
Truncate report file if too big.
This commit is contained in:
parent
13414ae867
commit
f8dba77dc8
@ -411,7 +411,7 @@ run_tests (char *logname, const char *tag, const char *url)
|
||||
char *strres, *eol, *nextline;
|
||||
DWORD strsize;
|
||||
|
||||
SetErrorMode (SEM_NOGPFAULTERRORBOX);
|
||||
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
|
||||
|
||||
if (!logname) {
|
||||
logname = tempnam (0, "res");
|
||||
|
@ -140,9 +140,9 @@ send_file (const char *name)
|
||||
filesize = ftell (f);
|
||||
if (filesize > 1024*1024) {
|
||||
report (R_WARNING,
|
||||
"File too big (%d > 1 MB), copy and submit manually",
|
||||
filesize);
|
||||
goto abort2;
|
||||
"File too big (%.1f MB > 1 MB); submitting partial report.",
|
||||
filesize/1024.0/1024);
|
||||
filesize = 1024*1024;
|
||||
}
|
||||
fseek (f, 0, SEEK_SET);
|
||||
|
||||
@ -159,7 +159,14 @@ send_file (const char *name)
|
||||
|
||||
report (R_STATUS, "Sending %u bytes of data", filesize);
|
||||
report (R_PROGRESS, 2, filesize);
|
||||
while ((bytes_read = fread (buffer, 1, BUFLEN / 2, f))) {
|
||||
total = 0;
|
||||
while (total < filesize && (bytes_read = fread (buffer, 1, BUFLEN/2, f))) {
|
||||
if ((signed)bytes_read == -1) {
|
||||
report (R_WARNING, "Error reading log file: %d", errno);
|
||||
goto abort2;
|
||||
}
|
||||
total += bytes_read;
|
||||
if (total > filesize) bytes_read -= total - filesize;
|
||||
if (send_buf (s, buffer, bytes_read)) {
|
||||
report (R_WARNING, "Error sending body: %d, %d",
|
||||
errno, WSAGetLastError ());
|
||||
|
Loading…
Reference in New Issue
Block a user