浏览代码

Set result of functions calling RunError to avoid useless warnings

git-svn-id: trunk@34335 -
pierre 9 年之前
父节点
当前提交
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;