[1/2] wineesd.drv: remove dead code

Erik Inge Bolsø knan-wine at anduin.net
Thu Sep 11 17:03:52 CDT 2008


Fixes gcc 4.3.2 warning:

audio.c: In function 'widRecorder':
audio.c:1713: warning: comparison of unsigned expression < 0 is always false

---
 dlls/wineesd.drv/audio.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c
index b57191c..02ee16c 100644
--- a/dlls/wineesd.drv/audio.c
+++ b/dlls/wineesd.drv/audio.c
@@ -1710,8 +1710,6 @@ static	DWORD	CALLBACK	widRecorder(LPVOID pmt)
 		if (bytesRead == -1 && errno == EAGAIN)
 			bytesRead = 0;
 		if (bytesRead==0) break; /* So we can stop recording smoothly */
-		if (bytesRead < 0)
-			bytesRead = 0;
  
 		lpWaveHdr->dwBytesRecorded	+= bytesRead;
 		wwi->dwRecordedTotal		+= bytesRead;
-- 
1.5.4.3



More information about the wine-patches mailing list