mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
fix compile error on Windows
This commit is contained in:
parent
80790287ab
commit
8df0e4ffc3
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ conn_recv_string(ConnectionObject *conn, char *buffer,
|
||||||
memcpy(*newbuffer, buffer, length);
|
memcpy(*newbuffer, buffer, length);
|
||||||
|
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
ret = ReadFile(conn->handle, *newbuffer+length, left, &length, NULL)
|
ret = ReadFile(conn->handle, *newbuffer+length, left, &length, NULL);
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
if (ret) {
|
if (ret) {
|
||||||
assert(length == left);
|
assert(length == left);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue