revers 24232 for cause some other unknown regress.

I need found a better way to solv the null termeting strings

svn path=/trunk/; revision=24244
This commit is contained in:
Magnus Olsen
2006-09-24 07:30:43 +00:00
parent 7bfdc5ceb7
commit c32cdd8bfb
+1 -7
View File
@@ -569,7 +569,7 @@ IntWideCharToMultiByteCP(UINT CodePage, DWORD Flags,
WideCharCount = MultiByteCount;
SetLastError(ERROR_INSUFFICIENT_BUFFER);
}
for (TempLength = WideCharCount;
TempLength > 0;
WideCharString++, TempLength--)
@@ -577,12 +577,6 @@ IntWideCharToMultiByteCP(UINT CodePage, DWORD Flags,
*MultiByteString++ = ((PCHAR)CodePageTable->WideCharTable)[*WideCharString];
}
if (WideCharCount>2)
{
MultiByteString--;
*MultiByteString = 0;
}
/* FIXME */
if (UsedDefaultChar != NULL)
*UsedDefaultChar = FALSE;