소스 검색

* fixed padding in the filerec to match textrec even on platforms where
sizeof(pointer)<>sizeof(codepointer), like in the medium and compact i8086
memory models

Nikolay Nikolov 4 년 전
부모
커밋
f20de5d583
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/inc/filerec.inc

+ 1 - 1
rtl/inc/filerec.inc

@@ -37,7 +37,7 @@ type
     Mode      : longint;
 {$endif}
     RecSize   : SizeInt;
-    _private  : array[1..3 * SizeOf(SizeInt) + 5 * SizeOf (pointer)] of byte;
+    _private  : array[1..3 * SizeOf(SizeInt) + SizeOf(pointer) + 4 * SizeOf(codepointer)] of byte;
     UserData  : array[1..32] of byte;
     name      : array[0..filerecnamelength] of TFileTextRecChar;
 {$ifdef USE_FILEREC_FULLNAME}