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
585e9d6c
Commit
585e9d6c
authored
Mar 12, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 2 fd leaks in comm functions.
Removed erroneous GetLastError() check in WaitCommEvent().
parent
496603cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
comm.c
dlls/kernel/comm.c
+2
-6
No files found.
dlls/kernel/comm.c
View file @
585e9d6c
...
@@ -1567,6 +1567,7 @@ BOOL WINAPI SetCommTimeouts(
...
@@ -1567,6 +1567,7 @@ BOOL WINAPI SetCommTimeouts(
if
(
-
1
==
tcgetattr
(
fd
,
&
tios
))
{
if
(
-
1
==
tcgetattr
(
fd
,
&
tios
))
{
FIXME
(
"tcgetattr on fd %d failed!
\n
"
,
fd
);
FIXME
(
"tcgetattr on fd %d failed!
\n
"
,
fd
);
close
(
fd
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -1591,6 +1592,7 @@ BOOL WINAPI SetCommTimeouts(
...
@@ -1591,6 +1592,7 @@ BOOL WINAPI SetCommTimeouts(
if
(
-
1
==
tcsetattr
(
fd
,
0
,
&
tios
))
{
if
(
-
1
==
tcsetattr
(
fd
,
0
,
&
tios
))
{
FIXME
(
"tcsetattr on fd %d failed!
\n
"
,
fd
);
FIXME
(
"tcsetattr on fd %d failed!
\n
"
,
fd
);
close
(
fd
);
return
FALSE
;
return
FALSE
;
}
}
close
(
fd
);
close
(
fd
);
...
@@ -1760,12 +1762,6 @@ BOOL WINAPI WaitCommEvent(
...
@@ -1760,12 +1762,6 @@ BOOL WINAPI WaitCommEvent(
COMM_WaitCommEvent
(
hFile
,
lpdwEvents
,
&
ov
);
COMM_WaitCommEvent
(
hFile
,
lpdwEvents
,
&
ov
);
if
(
GetLastError
()
!=
STATUS_PENDING
)
{
CloseHandle
(
ov
.
hEvent
);
return
FALSE
;
}
/* wait for the overlapped to complete */
/* wait for the overlapped to complete */
ret
=
GetOverlappedResult
(
hFile
,
&
ov
,
NULL
,
TRUE
);
ret
=
GetOverlappedResult
(
hFile
,
&
ov
,
NULL
,
TRUE
);
CloseHandle
(
ov
.
hEvent
);
CloseHandle
(
ov
.
hEvent
);
...
...
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