3.10.2.5

fix crash in windows #1543 (same fix as 3.10.2.4)