fix ProcessBuf for Windows