Browse Source

Set result of functions calling RunError to avoid useless warnings

git-svn-id: trunk@34335 -
pierre 9 years ago
parent
commit
2ec79b3606
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/win64/classes.pp

+ 2 - 0
rtl/win64/classes.pp

@@ -54,6 +54,7 @@ uses
 function MakeObjectInstance(Method: TWndMethod): Pointer;
   begin
     runerror(211);
+    MakeObjectInstance:=nil;
   end;
 
 
@@ -66,6 +67,7 @@ procedure FreeObjectInstance(ObjectInstance: Pointer);
 function AllocateHWnd(Method: TWndMethod): HWND;
   begin
     runerror(211);
+    AllocateHWnd:=0;
   end;