tdbf: fix compilation for wince: it has no OemToCharBuff

git-svn-id: trunk@9339 -
This commit is contained in:
micha 2007-11-27 20:54:51 +00:00
parent 3e1eba1745
commit 83285b3418

View File

@ -363,12 +363,14 @@ begin
if Length = -1 then
Length := StrLen(Src);
Result := Length;
{$ifndef WINCE}
if (FromCP = GetOEMCP) and (ToCP = GetACP) then
OemToCharBuff(Src, Dest, Length)
else
if (FromCP = GetACP) and (ToCP = GetOEMCP) then
CharToOemBuff(Src, Dest, Length)
else
{$endif}
if FromCP = ToCP then
begin
if Src <> Dest then