* Resource handle is not resource ID

This commit is contained in:
Michaël Van Canneyt 2023-03-08 16:12:59 +01:00
parent c3c3bd3471
commit 0e2102e172

View File

@ -1418,7 +1418,7 @@ function CreateComponentfromRes(const res : string;Inst : THandle;var Component
try
if Result then
begin
ResStream:=TResourceStream.CreateFromID(Inst,ResID,RT_RCDATA);
ResStream:=TResourceStream.Create(Inst,Res,RT_RCDATA);
try
Component:=ResStream.ReadComponent(Component);
finally