Explorar el Código

rtl: apply patch of Inoussa which fixes undefined result of UnicodeToLower and UnicodeToUpper (mantis #0024889)

git-svn-id: trunk@25315 -
paul hace 12 años
padre
commit
d375cc88a1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      rtl/objpas/unicodedata.pas

+ 2 - 2
rtl/objpas/unicodedata.pas

@@ -1070,8 +1070,8 @@ begin
     i := ((PtrUInt(pr) - PtrUInt(@r[1])) div SizeOf(UnicodeChar));
     SetLength(r,i);
     AResultString := r;
-    Result := 0;
   end;
+  Result := 0;
 end;
 
 function UnicodeToLower(
@@ -1136,8 +1136,8 @@ begin
     i := ((PtrUInt(pr) - PtrUInt(@r[1])) div SizeOf(UnicodeChar));
     SetLength(r,i);
     AResultString := r;
-    Result := 0;
   end;
+  Result := 0;
 end;
 
 //----------------------------------------------------------------------