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
1bbe92e7
Commit
1bbe92e7
authored
Dec 28, 2011
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Dec 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Don't post completion packet if sending fails with error immediately.
parent
fa4a90e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
socket.c
dlls/ws2_32/socket.c
+0
-2
sock.c
dlls/ws2_32/tests/sock.c
+4
-4
No files found.
dlls/ws2_32/socket.c
View file @
1bbe92e7
...
@@ -3885,9 +3885,7 @@ static int WS2_sendto( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
...
@@ -3885,9 +3885,7 @@ static int WS2_sendto( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
}
}
if
(
n
==
-
1
&&
errno
!=
EAGAIN
)
if
(
n
==
-
1
&&
errno
!=
EAGAIN
)
{
{
int
loc_errno
=
errno
;
err
=
wsaErrno
();
err
=
wsaErrno
();
if
(
cvalue
)
WS_AddCompletion
(
s
,
cvalue
,
sock_get_ntstatus
(
loc_errno
),
0
);
goto
error
;
goto
error
;
}
}
...
...
dlls/ws2_32/tests/sock.c
View file @
1bbe92e7
...
@@ -5321,10 +5321,10 @@ static void test_completion_port(void)
...
@@ -5321,10 +5321,10 @@ static void test_completion_port(void)
bret
=
GetQueuedCompletionStatus
(
io_port
,
&
num_bytes
,
&
key
,
&
olp
,
200
);
bret
=
GetQueuedCompletionStatus
(
io_port
,
&
num_bytes
,
&
key
,
&
olp
,
200
);
ok
(
bret
==
FALSE
,
"GetQueuedCompletionStatus returned %u
\n
"
,
bret
);
ok
(
bret
==
FALSE
,
"GetQueuedCompletionStatus returned %u
\n
"
,
bret
);
todo_wine
ok
(
GetLastError
()
==
WAIT_TIMEOUT
,
"Last error was %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
WAIT_TIMEOUT
,
"Last error was %d
\n
"
,
GetLastError
());
todo_wine
ok
(
key
==
0xdeadbeef
,
"Key is %lu
\n
"
,
key
);
ok
(
key
==
0xdeadbeef
,
"Key is %lu
\n
"
,
key
);
todo_wine
ok
(
num_bytes
==
0xdeadbeef
,
"Number of bytes transfered is %u
\n
"
,
num_bytes
);
ok
(
num_bytes
==
0xdeadbeef
,
"Number of bytes transfered is %u
\n
"
,
num_bytes
);
todo_wine
ok
(
!
olp
,
"Overlaped structure is at %p
\n
"
,
olp
);
ok
(
!
olp
,
"Overlaped structure is at %p
\n
"
,
olp
);
if
(
dest
!=
INVALID_SOCKET
)
if
(
dest
!=
INVALID_SOCKET
)
closesocket
(
dest
);
closesocket
(
dest
);
...
...
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