瀏覽代碼

tests: restore nil check in the dispinterface test

git-svn-id: trunk@14748 -
paul 15 年之前
父節點
當前提交
0d7391baff
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      tests/webtbs/tw15530.pp

+ 4 - 1
tests/webtbs/tw15530.pp

@@ -22,10 +22,13 @@ begin
 
 
   II := CreateOleObject('InternetExplorer.Application') as IIE;
   II := CreateOleObject('InternetExplorer.Application') as IIE;
 
 
+  if II = nil then
+    halt(1);
+
   if not II.Visible then // test dispid property getter
   if not II.Visible then // test dispid property getter
     II.Visible := True;  // test dispid property setter
     II.Visible := True;  // test dispid property setter
 
 
   II.Quit; // test dipid method call
   II.Quit; // test dipid method call
 
 
   OleUninitialize;
   OleUninitialize;
-end.
+end.