Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e4a0e0cc
Commit
e4a0e0cc
authored
Sep 12, 2008
by
Erik Inge Bolsø
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineesd.drv: Allow all errors to interrupt recording.
parent
20276da9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
audio.c
dlls/wineesd.drv/audio.c
+2
-6
No files found.
dlls/wineesd.drv/audio.c
View file @
e4a0e0cc
...
...
@@ -1680,7 +1680,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
WINE_WAVEIN
*
wwi
=
(
WINE_WAVEIN
*
)
&
WInDev
[
uDevID
];
WAVEHDR
*
lpWaveHdr
;
DWORD
dwSleepTime
;
DWORD
bytesRead
;
int
bytesRead
;
enum
win_wm_message
msg
;
DWORD
param
;
HANDLE
ev
;
...
...
@@ -1707,11 +1707,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
lpWaveHdr
->
lpData
+
lpWaveHdr
->
dwBytesRecorded
,
lpWaveHdr
->
dwBufferLength
-
lpWaveHdr
->
dwBytesRecorded
);
TRACE
(
"bytesRead=%d
\n
"
,
bytesRead
);
if
(
bytesRead
==
-
1
&&
errno
==
EAGAIN
)
bytesRead
=
0
;
if
(
bytesRead
==
0
)
break
;
/* So we can stop recording smoothly */
if
(
bytesRead
<
0
)
bytesRead
=
0
;
if
(
bytesRead
<=
0
)
break
;
/* So we can stop recording smoothly */
lpWaveHdr
->
dwBytesRecorded
+=
bytesRead
;
wwi
->
dwRecordedTotal
+=
bytesRead
;
...
...
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