* resources aren't case sensitive

* fixed installing of default component loading handler

git-svn-id: trunk@1250 -
This commit is contained in:
florian 2005-10-02 09:08:21 +00:00
parent e864a12528
commit 8cc183c1d1

View File

@ -113,12 +113,13 @@ begin
Exit;
If Not InitRes then
InitializeResources;
searchhash:=HashELF(ResourceName);
n:=strpas(resourcename);
{ resources aren't case sensitive }
n:=upcase(strpas(resourcename));
searchhash:=HashELF(n);
I:=0;
While (Result=0) and (I<ResInfoCount) do
begin
if (FPCRuntimeResourceInfoArray[i].reshash=searchhash) and (FPCRuntimeResourceInfoArray[i].name=n) then
if (FPCRuntimeResourceInfoArray[i].reshash=searchhash) and (upcase(FPCRuntimeResourceInfoArray[i].name)=n) then
result:=i+1;
Inc(I);
end;