InsertItem method incorrectly checks IDs

Summary

Id: 7.1
Type: Bug Bug
Current Status: Open

Detail

3 Jun 2003 Open Chris Scharf

I noticed a bug in the source code after attempting to perform the InsertItem(...) method. The bug is in the following lines in method pInsertNewMenuItem:

For .... If tMII.wID = m_tMI(lIndexBefore).lParentId Then lPosition = iMenu Exit For End If Next

Instead of .lParentId, I think it should be .lID

Just wanted to let you know because I spent some time trying to track down what was going on :)