Reinhard Karcher : user32: Speed improvement for 16bit comm support.

Alexandre Julliard julliard at winehq.org
Wed Jan 3 06:00:54 CST 2007


Robert Shearman <rob at codeweavers.com> writes:

>> diff --git a/dlls/user32/comm16.c b/dlls/user32/comm16.c
>> index 9329c82..0164196 100644
>> --- a/dlls/user32/comm16.c
>> +++ b/dlls/user32/comm16.c
>> @@ -719,9 +719,8 @@ INT16 WINAPI GetCommError16(INT16 cid,LP
>>          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);
>
> This patch doesn't seem to do what it says it does.

Indeed, thanks for spotting this. It's the second time this happens,
it seems that Emacs diff mode cannot be trusted to apply hunks
correctly :-(

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list