Browse Source

* fixed WinCE breakage caused when moving to target dependent type for ordinal argument in GetProcAddress

git-svn-id: trunk@26522 -
Tomas Hajny 11 years ago
parent
commit
2c60f456f1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      rtl/wince/dynlibs.inc

+ 4 - 2
rtl/wince/dynlibs.inc

@@ -20,8 +20,11 @@
     Interface declarations
     Interface declarations
   ---------------------------------------------------------------------}
   ---------------------------------------------------------------------}
 
 
+{$define DYNLIBS_SUPPORTS_ORDINAL}
+
 Type
 Type
   TLibHandle = Longint;
   TLibHandle = Longint;
+  TOrdinalEntry = word;
 
 
 Const
 Const
   NilHandle = 0;
   NilHandle = 0;
@@ -50,8 +53,7 @@ begin
   FreeMem(ws);
   FreeMem(ws);
 end;
 end;
 
 
-{$define DYNLIBS_SUPPORTS_ORDINAL}
-Function GetProcedureAddress(Lib : TLibHandle; Ordinal : Word) : Pointer;
+Function GetProcedureAddress(Lib : TLibHandle; Ordinal : TOrdinalEntry) : Pointer;
 begin
 begin
   Result:=Windows.GetProcAddress(Lib, PWideChar(Ordinal));
   Result:=Windows.GetProcAddress(Lib, PWideChar(Ordinal));
 end;
 end;