Menu

Commit [r1508]  Maximize  Restore  History

Corrected setting of out parameter to nil in TSimpleDispatch.GetTypeInfo.

delphidabbler 2011-07-06

changed /trunk/Src/USimpleDispatch.pas
/trunk/Src/USimpleDispatch.pas Diff Switch to side-by-side view
--- a/trunk/Src/USimpleDispatch.pas
+++ b/trunk/Src/USimpleDispatch.pas
@@ -133,7 +133,8 @@
         @param Index [in] Index of type information to return. Pass 0 to
           retrieve type information for the IDispatch implementation.
         @param LocaleID [in] The locale ID for the type information.
-        @param TypeInfo [out] Set to type information requested. We set to nil.
+        @param TypeInfo [out] Set to interface of type information requested. We
+          set to nil.
         @return Success or failure code. We return E_NOTIMPL.
       }
     function GetTypeInfoCount(out Count: Integer): HResult; stdcall;
@@ -203,11 +204,12 @@
     @param Index [in] Index of type information to return. Pass 0 to retrieve
       type information for the IDispatch implementation.
     @param LocaleID [in] The locale ID for the type information.
-    @param TypeInfo [out] Set to type information requested. We set to nil.
+    @param TypeInfo [out] Set to interface of type information requested. We set
+      to nil.
     @return Success or failure code. We return E_NOTIMPL.
   }
 begin
-  Pointer(TypeInfo) := nil;
+  ITypeInfo(TypeInfo) := nil;
   Result := E_NOTIMPL;
 end;
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.