Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ae1238b4
Commit
ae1238b4
authored
Aug 18, 2004
by
Ferenc Wagner
Committed by
Alexandre Julliard
Aug 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid crashing on unsuccessful send.
parent
b6abcb51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
send.c
programs/winetest/send.c
+4
-6
No files found.
programs/winetest/send.c
View file @
ae1238b4
...
...
@@ -107,7 +107,7 @@ send_file (const char *name)
SOCKET
s
;
FILE
*
f
;
#define BUFLEN 8192
unsigned
char
*
buffer
;
unsigned
char
buffer
[
BUFLEN
+
1
]
;
size_t
bytes_read
,
total
,
filesize
;
char
*
str
;
int
ret
;
...
...
@@ -127,7 +127,6 @@ send_file (const char *name)
"Upload File
\r\n
"
"--"
SEP
"--
\r\n
"
;
buffer
=
xmalloc
(
BUFLEN
+
1
);
s
=
open_http
(
"test.winehq.org"
);
if
(
s
==
INVALID_SOCKET
)
return
1
;
...
...
@@ -209,17 +208,16 @@ send_file (const char *name)
if
(
ret
)
{
buffer
[
total
]
=
0
;
str
=
strstr
(
buffer
,
"
\r\n\r\n
"
);
if
(
str
)
buffer
=
str
+
4
;
if
(
!
str
)
str
=
buffer
;
else
str
=
str
+
4
;
report
(
R_ERROR
,
"Can't submit logfile '%s'. "
"Server response: %s"
,
name
,
buffe
r
);
"Server response: %s"
,
name
,
st
r
);
}
free
(
buffer
);
return
ret
;
abort2:
fclose
(
f
);
abort1:
close_http
(
s
);
free
(
buffer
);
return
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment