fix a bug in ProcessBuf for WIN32