mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 14:59:15 +02:00
lcl: fixed compilation WinCE
git-svn-id: trunk@47122 -
This commit is contained in:
parent
8e9dbfa85e
commit
666f004e4c
@ -3089,7 +3089,9 @@ function InitLazResourceComponent(Instance: TComponent;
|
|||||||
{$ifdef UseRES}
|
{$ifdef UseRES}
|
||||||
if Stream = nil then
|
if Stream = nil then
|
||||||
begin
|
begin
|
||||||
FPResource := FindResource(HInstance, PChar(ResName), PChar(RT_RCDATA));
|
FPResource := FindResource(HInstance, PChar(ResName),
|
||||||
|
{$IF (FPC_FULLVERSION>=20701) and defined(Windows)}Windows.{$ENDIF}RT_RCDATA
|
||||||
|
);
|
||||||
if FPResource <> 0 then
|
if FPResource <> 0 then
|
||||||
Stream := TLazarusResourceStream.CreateFromHandle(HInstance, FPResource);
|
Stream := TLazarusResourceStream.CreateFromHandle(HInstance, FPResource);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user