mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 09:20:56 +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}
|
||||
if Stream = nil then
|
||||
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
|
||||
Stream := TLazarusResourceStream.CreateFromHandle(HInstance, FPResource);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user