Correct illegal pattern in windows-only code