The door was locked while the window was opened.这样表达有错吗