소스 검색

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

git-svn-id: trunk@25315 -
paul 12 년 전
부모
커밋
d375cc88a1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
 
 //----------------------------------------------------------------------