- BuildCommDCB16() uses int instead of BOOL
- OpenComm16() should return IE_BADID for *all* invalid strings
This commit is contained in:
parent
792e09f6e5
commit
9650c2baea
|
@ -379,7 +379,7 @@ static void comm_waitwrite(struct DosDeviceStruct *ptr)
|
||||||
* IF THIS IS NOT CORRECT THE RETURNVALUE CHECK IN BuildCommDCBAndTimeoutsA
|
* IF THIS IS NOT CORRECT THE RETURNVALUE CHECK IN BuildCommDCBAndTimeoutsA
|
||||||
* NEEDS TO BE FIXED
|
* NEEDS TO BE FIXED
|
||||||
*/
|
*/
|
||||||
BOOL16 WINAPI BuildCommDCB16(LPCSTR device, LPDCB16 lpdcb)
|
INT16 WINAPI BuildCommDCB16(LPCSTR device, LPDCB16 lpdcb)
|
||||||
{
|
{
|
||||||
/* "COM1:96,n,8,1" */
|
/* "COM1:96,n,8,1" */
|
||||||
/* 012345 */
|
/* 012345 */
|
||||||
|
@ -600,7 +600,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
|
||||||
return port|FLAG_LPT;
|
return port|FLAG_LPT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return IE_BADID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
|
@ -920,7 +920,7 @@ INT16 WINAPI wvsprintf16(LPSTR,LPCSTR,LPCVOID);
|
||||||
BOOL16 WINAPI DrawState16A(HDC16,HBRUSH16,DRAWSTATEPROC16,LPARAM,WPARAM16,INT16,INT16,INT16,INT16,UINT16);
|
BOOL16 WINAPI DrawState16A(HDC16,HBRUSH16,DRAWSTATEPROC16,LPARAM,WPARAM16,INT16,INT16,INT16,INT16,UINT16);
|
||||||
BOOL16 WINAPI IsDialogMessage16(HWND16,SEGPTR);
|
BOOL16 WINAPI IsDialogMessage16(HWND16,SEGPTR);
|
||||||
INT16 WINAPI GetCommError16(INT16,LPCOMSTAT16);
|
INT16 WINAPI GetCommError16(INT16,LPCOMSTAT16);
|
||||||
BOOL16 WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
|
INT16 WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
|
||||||
INT16 WINAPI GetCommState16(INT16,LPDCB16);
|
INT16 WINAPI GetCommState16(INT16,LPDCB16);
|
||||||
INT16 WINAPI SetCommState16(LPDCB16);
|
INT16 WINAPI SetCommState16(LPDCB16);
|
||||||
INT16 WINAPI lstrcmp16(LPCSTR,LPCSTR);
|
INT16 WINAPI lstrcmp16(LPCSTR,LPCSTR);
|
||||||
|
|
Loading…
Reference in New Issue