In lmgr.c you have a static LOCKMASK LockConflicts[] with 9
elements in it.
You call LockMethodTableInit() with that pointer, and
MAX_LOCKMODES - 1 (10 - 1 = 9)
That calls LockMethodInit with the same arguments, but it does
numModes++.
So you basicly have a for loop that looks like:
for (i = 0; i < 10; i++, conflictsP++)
The last item you try to copy is conflictsP is not within the
the LockConflicts array anymore.
I have no idea what that numModes++ line is doing there.
Kurt