Fix infinite loop on Windows.

Copying from within own vector range was failing.