mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 10:49:17 +02:00
* Resource handle is not resource ID
This commit is contained in:
parent
c3c3bd3471
commit
0e2102e172
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user