LMDFileCreate have the result type integer.
But it calls CreateFileW which have a result type THandle which is a unsigned integer.
This causes exception if you want to compiler your apps with rangecheck.
We have 2 possibilities to solve this problem:
1, Change result type to THandle (LongWord = Unsinged Integer) to get the correct type back
2, Add {$R-} ... {$R+} to the code.
But you will have to write more code to get respect to the configured compiler settings.
Comments