[CS] Fix Regression in Windows Module

Fixes #2971