2
0
Эх сурвалжийг харах

Set result of functions calling RunError to avoid useless warnings

git-svn-id: trunk@34335 -
pierre 9 жил өмнө
parent
commit
2ec79b3606
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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;