Fixed the incorrect file size issue in the Windows implementation.