Revert r42536 for build server diagnosis
authorGregor Schneider <grschneider@gmail.com>
Sun, 9 Aug 2009 19:30:35 +0000 (19:30 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sun, 9 Aug 2009 19:30:35 +0000 (19:30 +0000)
svn path=/trunk/; revision=42571

reactos/dll/win32/kernel32/misc/commdcb.c

index 8ddb9ed..8de2bf2 100644 (file)
@@ -627,7 +627,7 @@ DCB_BuildCommDCBAndTimeoutsW(LPCWSTR lpDef, LPDCB lpDCB, LPCOMMTIMEOUTS lpCommTi
        DWORD dwErr;
 
        dwErr = ERROR_INVALID_PARAMETER;
-       cchAscii = WideCharToMultiByte(CP_ACP, 0, lpDef, -1, NULL, 0, NULL, NULL);
+       cchAscii = WideCharToMultiByte(20127, 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(CP_ACP, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars);
+                       cchAscii = WideCharToMultiByte(20127, 0, lpDef, -1, pszAscii, cchAscii, NULL, &bInvalidChars);
 
                        bRet = cchAscii > 0 && !bInvalidChars;