windows: Fix panicking on startup (#11028)

### Connection:
Closes #10954 

Release Notes:

- N/A
6a915e349c张小白 committed on 4/26/2024, 8:55:41 PM· committed by GitHubparent70d03e4
1 file changedLine totals unavailable