From dff43b732b10e603f3aee38db2f684dc7404aa4e Mon Sep 17 00:00:00 2001 From: Reinhard Karcher Date: Mon, 1 Jan 2007 17:45:06 +0100 Subject: [PATCH] user32: Speed improvement for 16bit comm support. --- dlls/user32/comm16.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/user32/comm16.c b/dlls/user32/comm16.c index 9329c82e7ae..01641962b5e 100644 --- a/dlls/user32/comm16.c +++ b/dlls/user32/comm16.c @@ -719,9 +719,8 @@ INT16 WINAPI GetCommError16(INT16 cid,LPCOMSTAT16 lpStat) stol = (unsigned char *)COM[cid].unknown + COMM_MSR_OFFSET; COMM_MSRUpdate( ptr->handle, stol ); - if (lpStat) { - lpStat->status = 0; - + if (lpStat) { + lpStat->status = 0; SleepEx(1,TRUE); lpStat->cbOutQue = comm_outbuf(ptr);