Rinse pasta well in strainer. Cook pasta in a large pot of salted boiling water, and then drain and dry well.
Meanwhile, heat oil in a medium sauté pan over medium heat. Add the garlic and red pepper flakes and cook until soft, about 1 minute. Add the sliced mushrooms, salt and pepper and sauté about 2 minutes. Add white wine and cook another 3 minutes.