Merge pull request #2278 from WalterBright/fix10462

fix Issue 10462 - interface thunk doesn't preserve EBX