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
5b1fbcf7
Commit
5b1fbcf7
authored
Jan 11, 2005
by
Andreas Mohr
Committed by
Alexandre Julliard
Jan 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read/write completion functions get Windows error codes, not NT status
codes.
parent
7e2a7c94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
comm16.c
dlls/user/comm16.c
+8
-9
No files found.
dlls/user/comm16.c
View file @
5b1fbcf7
...
...
@@ -60,7 +60,6 @@
#include <errno.h>
#include <ctype.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
...
...
@@ -178,9 +177,9 @@ static unsigned comm_outbuf(struct DosDeviceStruct *ptr)
static
void
comm_waitread
(
struct
DosDeviceStruct
*
ptr
);
static
void
comm_waitwrite
(
struct
DosDeviceStruct
*
ptr
);
static
VOID
WINAPI
COMM16_ReadComplete
(
DWORD
status
,
DWORD
len
,
LPOVERLAPPED
ov
)
static
VOID
WINAPI
COMM16_ReadComplete
(
DWORD
dwErrorCode
,
DWORD
len
,
LPOVERLAPPED
ov
)
{
int
prev
;
int
prev
;
WORD
mask
=
0
;
int
cid
=
GetCommPort_ov
(
ov
,
0
);
struct
DosDeviceStruct
*
ptr
;
...
...
@@ -192,15 +191,15 @@ static VOID WINAPI COMM16_ReadComplete(DWORD status, DWORD len, LPOVERLAPPED ov)
ptr
=
&
COM
[
cid
];
/* we get cancelled when CloseComm is called */
if
(
status
==
STATUS_CANCELL
ED
)
if
(
dwErrorCode
==
ERROR_OPERATION_ABORT
ED
)
{
TRACE
(
"Cancelled
\n
"
);
return
;
}
/* read data from comm port */
if
(
status
!=
STATUS_SUCCESS
)
{
ERR
(
"async read failed
%08lx
\n
"
,
status
);
if
(
dwErrorCode
!=
NO_ERROR
)
{
ERR
(
"async read failed
, error %ld
\n
"
,
dwErrorCode
);
COM
[
cid
].
commerror
=
CE_RXOVER
;
return
;
}
...
...
@@ -265,7 +264,7 @@ static INT COMM16_WriteFile(HANDLE hComm, LPCVOID buffer, DWORD len)
return
count
;
}
static
VOID
WINAPI
COMM16_WriteComplete
(
DWORD
status
,
DWORD
len
,
LPOVERLAPPED
ov
)
static
VOID
WINAPI
COMM16_WriteComplete
(
DWORD
dwErrorCode
,
DWORD
len
,
LPOVERLAPPED
ov
)
{
int
prev
,
bleft
;
WORD
mask
=
0
;
...
...
@@ -279,8 +278,8 @@ static VOID WINAPI COMM16_WriteComplete(DWORD status, DWORD len, LPOVERLAPPED ov
ptr
=
&
COM
[
cid
];
/* read data from comm port */
if
(
status
!=
STATUS_SUCCESS
)
{
ERR
(
"async write failed
\n
"
);
if
(
dwErrorCode
!=
NO_ERROR
)
{
ERR
(
"async write failed
, error %ld
\n
"
,
dwErrorCode
);
COM
[
cid
].
commerror
=
CE_RXOVER
;
return
;
}
...
...
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