http://bugs.winehq.com/show_bug.cgi?id=1590
Summary: comm driver config problem Product: Wine Version: 20030618 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.com ReportedBy: f.gockel@t-online.de
There is a typo in file dlls/kernel/comm.c. It makes the configuration program for the Fritz!X isdn adaptor - and maybe other programs too - fail setting up the serial port.
This diff fixes it.
--- dlls/kernel/comm.c.orig 2003-07-12 15:38:22.000000000 +0200 +++ dlls/kernel/comm.c 2003-07-12 15:38:43.000000000 +0200 @@ -1927,8 +1927,10 @@ return FALSE;
r = *lpdwSize < sizeof(COMMCONFIG); + TRACE("DEREF_lpdwSize=0x%x sizeof_COMMCONFIG=0x%x r=0x%x\n", + *lpdwSize,sizeof(COMMCONFIG),r); *lpdwSize = sizeof(COMMCONFIG); - if(!r) + if(r) return FALSE;
lpCommConfig->dwSize = sizeof(COMMCONFIG);