Fixed Windows bugs.

svn path=/trunk/boinc/; revision=124
This commit is contained in:
Eric Heien 2002-06-21 00:22:59 +00:00
parent 423db22fa2
commit f35ab732d7
3 changed files with 12 additions and 3 deletions

View File

@ -504,6 +504,7 @@ Eric H June 19, 2002
Eric H June 20, 2002
- added soft link support via XML tags
- fixed Windows ASCII/binary bug
- Added Windows networking support
- Fixed some bad indenting
api/
@ -511,4 +512,11 @@ Eric H June 20, 2002
api.h
lib/
md5_file.C
client/
cs_scheduler.C
net_xfer.C
win_net.C (added)
win_net.h (added)
win_main.C
windows_cpp.h

View File

@ -106,7 +106,7 @@ PROJECT* CLIENT_STATE::choose_project() {
}
int CLIENT_STATE::make_scheduler_request(PROJECT* p, int work_req) {
FILE* f = fopen(SCHED_OP_REQUEST_FILE, "w");
FILE* f = fopen(SCHED_OP_REQUEST_FILE, "wb");
unsigned int i;
RESULT* rp;

View File

@ -87,7 +87,8 @@ int NET_XFER::open_server() {
retval = connect(fd, (sockaddr*)&addr, sizeof(addr));
if (retval) {
#ifdef _WIN32
if (errno != WSAEINPROGRESS) {
errno = WSAGetLastError();
if (errno != WSAEINPROGRESS && errno != WSAEWOULDBLOCK) {
closesocket(fd);
return -1;
}