mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user