Detlef Riekenberg : winspool: A read can fail.
Module: wine Branch: refs/heads/master Commit: 50b32da7af25a3c86c030c63c5edf234b95c27b6 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=50b32da7af25a3c86c030c63... Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Sat Apr 8 19:17:06 2006 +0200 winspool: A read can fail. --- dlls/winspool/info.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index c6636ca..e98e78e 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -5288,7 +5288,7 @@ BOOL WINAPI EnumMonitorsW(LPWSTR pName, { DWORD needed = 0; DWORD numentries = 0; - BOOL res = FALSE;; + BOOL res = FALSE; TRACE("(%s, %ld, %p, %ld, %p, %p)\n", debugstr_w(pName), Level, pMonitors, cbBuf, pcbNeeded, pcReturned); @@ -5881,7 +5881,7 @@ static BOOL schedule_pipe(LPCWSTR cmd, L exit(0); } - while((no_read = read(file_fd, buf, sizeof(buf)))) + while((no_read = read(file_fd, buf, sizeof(buf))) > 0) write(fds[1], buf, no_read); ret = TRUE; @@ -5922,7 +5922,7 @@ static BOOL schedule_unixfile(LPCWSTR ou if(out_fd == -1 || in_fd == -1) goto end; - while((no_read = read(in_fd, buf, sizeof(buf)))) + while((no_read = read(in_fd, buf, sizeof(buf))) > 0) write(out_fd, buf, no_read); ret = TRUE;
participants (1)
-
Alexandre Julliard