fix mismatched RCNTXT memory layout on Windows