Truck maker Oshkosh has won dismissal of an investor class-action lawsuit alleging the maker of heavy trucks inflated its stock price by failing to write down a troubled Dutch acquisition fast enough.