[win32] Prevent crash on startup