LVM unit is broken

Summary

OS/2 LVM Unit compilation are broken

System Information

  • Operating system: OS/2
  • Processor architecture: x86
  • Compiler version: 3.2.2
  • Device: Computer

Steps to reproduce

Use LVM unit

Example Project

uses lvm;

var Res: cardinal32; begin Open_LVM_Engine(True, @res); end.

What is the current bug behavior?

Import by name not works for OS/2 target. Also, record pack incorrect.

What is the expected (correct) behavior?

Import by name must not include underscope for DLLs. PACKRECORDS 1 must be used.

Relevant logs and/or screenshots

Possible fixes

Updated and fixed LVM unit attached here (tested on ArcaOS 5)

lvm.pas