mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:42:34 +02:00
Set result of functions calling RunError to avoid useless warnings
git-svn-id: trunk@34335 -
This commit is contained in:
parent
44f00c2bf4
commit
2ec79b3606
@ -54,6 +54,7 @@ uses
|
|||||||
function MakeObjectInstance(Method: TWndMethod): Pointer;
|
function MakeObjectInstance(Method: TWndMethod): Pointer;
|
||||||
begin
|
begin
|
||||||
runerror(211);
|
runerror(211);
|
||||||
|
MakeObjectInstance:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -66,6 +67,7 @@ procedure FreeObjectInstance(ObjectInstance: Pointer);
|
|||||||
function AllocateHWnd(Method: TWndMethod): HWND;
|
function AllocateHWnd(Method: TWndMethod): HWND;
|
||||||
begin
|
begin
|
||||||
runerror(211);
|
runerror(211);
|
||||||
|
AllocateHWnd:=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user