mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:42:57 +00:00
[RPCRT4:FORMATTING]
- Forgotten file svn path=/trunk/; revision=57364
This commit is contained in:
parent
96ee78be1e
commit
3cce9acbab
1 changed files with 2 additions and 3 deletions
|
@ -430,7 +430,7 @@ static int rpcrt4_conn_np_read(RpcConnection *Connection,
|
||||||
BOOL ret = TRUE;
|
BOOL ret = TRUE;
|
||||||
unsigned int bytes_left = count;
|
unsigned int bytes_left = count;
|
||||||
OVERLAPPED ovl;
|
OVERLAPPED ovl;
|
||||||
|
|
||||||
ZeroMemory(&ovl, sizeof(ovl));
|
ZeroMemory(&ovl, sizeof(ovl));
|
||||||
ovl.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
ovl.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||||
|
|
||||||
|
@ -438,7 +438,7 @@ static int rpcrt4_conn_np_read(RpcConnection *Connection,
|
||||||
{
|
{
|
||||||
DWORD bytes_read;
|
DWORD bytes_read;
|
||||||
ret = ReadFile(npc->pipe, buf, bytes_left, &bytes_read, &ovl);
|
ret = ReadFile(npc->pipe, buf, bytes_left, &bytes_read, &ovl);
|
||||||
if ((!ret || !bytes_read) && (GetLastError() != ERROR_IO_PENDING))
|
if ((!ret || !bytes_read) && (GetLastError() != ERROR_IO_PENDING))
|
||||||
break;
|
break;
|
||||||
ret = GetOverlappedResult(npc->pipe, &ovl, &bytes_read, TRUE);
|
ret = GetOverlappedResult(npc->pipe, &ovl, &bytes_read, TRUE);
|
||||||
if (!ret && (GetLastError() != ERROR_MORE_DATA))
|
if (!ret && (GetLastError() != ERROR_MORE_DATA))
|
||||||
|
@ -468,7 +468,6 @@ static int rpcrt4_conn_np_write(RpcConnection *Connection,
|
||||||
ret = WriteFile(npc->pipe, buf, bytes_left, &bytes_written, &ovl);
|
ret = WriteFile(npc->pipe, buf, bytes_left, &bytes_written, &ovl);
|
||||||
if ((!ret || !bytes_written) && (GetLastError() != ERROR_IO_PENDING))
|
if ((!ret || !bytes_written) && (GetLastError() != ERROR_IO_PENDING))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ret = GetOverlappedResult(npc->pipe, &ovl, &bytes_written, TRUE);
|
ret = GetOverlappedResult(npc->pipe, &ovl, &bytes_written, TRUE);
|
||||||
if (!ret && (GetLastError() != ERROR_MORE_DATA))
|
if (!ret && (GetLastError() != ERROR_MORE_DATA))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue