mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 14:34:09 +00:00
Supply default ansi codepage when converting from unicode, fixes 365 kernel32 comm winetests
svn path=/trunk/; revision=42536
This commit is contained in:
parent
ee9e10c750
commit
ee30838ad7
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…
Add table
Add a link
Reference in a new issue