浏览代码

* fix for issue #40006
set jwadhcpcsdk packing to 8 for win64.

(cherry picked from commit 3b4c396edd21db35f2c4834514e0866e840c94a1)

marcoonthegit 2 年之前
父节点
当前提交
12c586f22e
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      packages/winunits-jedi/src/jwadhcpcsdk.pas

+ 9 - 0
packages/winunits-jedi/src/jwadhcpcsdk.pas

@@ -61,6 +61,10 @@ uses
 {$ENDIF JWA_OMIT_SECTIONS}
 {$ENDIF JWA_OMIT_SECTIONS}
 
 
 {$IFNDEF JWA_IMPLEMENTATIONSECTION}
 {$IFNDEF JWA_IMPLEMENTATIONSECTION}
+{$ifdef win64}
+{$push}  {$define dopop}
+{$align 8}
+{$endif}
 
 
 //
 //
 // DHCP Standard Options.
 // DHCP Standard Options.
@@ -341,6 +345,11 @@ function DhcpDeRegisterParamChange(Flags: DWORD; Reserved, Event: LPVOID): DWORD
 function DhcpRemoveDNSRegistrations: DWORD; stdcall;
 function DhcpRemoveDNSRegistrations: DWORD; stdcall;
 {$EXTERNALSYM DhcpRemoveDNSRegistrations}
 {$EXTERNALSYM DhcpRemoveDNSRegistrations}
 
 
+{$ifdef dopop}
+{$pop}
+{$undef dopop}
+{$endif}
+
 {$ENDIF JWA_IMPLEMENTATIONSECTION}
 {$ENDIF JWA_IMPLEMENTATIONSECTION}
 
 
 {$IFNDEF JWA_OMIT_SECTIONS}
 {$IFNDEF JWA_OMIT_SECTIONS}