[ros-diffs] [CVS reactos] fixed missing window dereferences and a minor thread-safety bug