[win32] use pointers for unsafe arithmetic

Iterator arithmetic beyond vector.end() is undefined.