Browse Source

* Fix definition of REFIID

git-svn-id: trunk@36770 -
michael 8 years ago
parent
commit
4e494607d6
2 changed files with 4 additions and 4 deletions
  1. 2 2
      packages/winunits-base/src/activex.pp
  2. 2 2
      packages/winunits-base/src/comserv.pp

+ 2 - 2
packages/winunits-base/src/activex.pp

@@ -4588,8 +4588,8 @@ type
 {$endif wince}
 {$endif wince}
 
 
   type
   type
-    REFIID = TIID;
-    TREFIID = TIID;
+    REFIID = ^TIID;
+    TREFIID = ^TIID;
 
 
 {$ifndef wince}
 {$ifndef wince}
   function SetErrorInfo(dwReserved:ULONG;errinfo:IErrorInfo):HResult;stdcall; external 'ole32.dll' name 'SetErrorInfo';
   function SetErrorInfo(dwReserved:ULONG;errinfo:IErrorInfo):HResult;stdcall; external 'ole32.dll' name 'SetErrorInfo';

+ 2 - 2
packages/winunits-base/src/comserv.pp

@@ -135,12 +135,12 @@ begin
   WriteLn('DllGetClassObject called: ', GUIDToString(rclsid), ' ', GUIDToString(riid));
   WriteLn('DllGetClassObject called: ', GUIDToString(rclsid), ' ', GUIDToString(riid));
 {$endif}
 {$endif}
 
 
-  factory := ComClassManager.GetFactoryFromClassID(rclsid);
+  factory := ComClassManager.GetFactoryFromClassID(rclsid^);
   if factory = nil then
   if factory = nil then
     Result := CLASS_E_CLASSNOTAVAILABLE
     Result := CLASS_E_CLASSNOTAVAILABLE
   else
   else
   begin
   begin
-    if factory.GetInterface(riid,ppv) then
+    if factory.GetInterface(riid^,ppv) then
       Result := S_OK
       Result := S_OK
     else
     else
       Result := CLASS_E_CLASSNOTAVAILABLE;
       Result := CLASS_E_CLASSNOTAVAILABLE;