mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 17:49:27 +02:00
* Fix for tres.pp test by Sergei Gorelkin.
git-svn-id: trunk@8375 -
This commit is contained in:
parent
3df93c5391
commit
ebfd2b6b20
@ -99,6 +99,12 @@ begin
|
|||||||
Result:=0;
|
Result:=0;
|
||||||
if (ResourceName=nil) or (FPCResourceSectionLocation = nil) then
|
if (ResourceName=nil) or (FPCResourceSectionLocation = nil) then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
|
{ This is a temporary fix to stay compatible with fpcres
|
||||||
|
which currently converts all string types to RT_RCDATA. }
|
||||||
|
if ResourceType > PChar($FFFF) then
|
||||||
|
ResourceType := PChar(10);
|
||||||
|
|
||||||
{ support numeric resource IDs }
|
{ support numeric resource IDs }
|
||||||
if ResourceName <= PChar($FFFF) then
|
if ResourceName <= PChar($FFFF) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user