mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Re-add r42536, it didn't break the build server
svn path=/trunk/; revision=42621
This commit is contained in:
parent
faf651d298
commit
15900e1f91
1 changed files with 2 additions and 2 deletions
|
@ -627,7 +627,7 @@ DCB_BuildCommDCBAndTimeoutsW(LPCWSTR lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTi
|
|||
DWORD dwErr;
|
||||
|
||||
dwErr = ERROR_INVALID_PARAMETER;
|
||||
cchAscii = WideCharToMultiByte(20127, 0, lpDef, -1, NULL, 0, NULL, NULL);
|
||||
cchAscii = WideCharToMultiByte(CP_ACP, 0, lpDef, -1, NULL, 0, NULL, NULL);
|
||||
|
||||
bRet = cchAscii > 0;
|
||||
|
||||
|
@ -641,7 +641,7 @@ DCB_BuildCommDCBAndTimeoutsW(LPCWSTR lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTi
|
|||
if(bRet)
|
||||
{
|
||||
bInvalidChars = FALSE;
|
||||
cchAscii = WideCharToMultiByte(20127, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars);
|
||||
cchAscii = WideCharToMultiByte(CP_ACP, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars);
|
||||
|
||||
bRet = cchAscii > 0 && !bInvalidChars;
|
||||
|
||||
|
|
Loading…
Reference in a new issue