I know Peter had just started to speak. I also know that Peter said that the Holy Spirit coming upon Cornelius was like what happened to him and the other Apostles at Pentecost. Was that "baptism" of the Holy Spirit for salvation? No. Neither was this.
Do you believe that one can be baptized in the Holy Spirit ... and not be saved ?
In order to explain the pouring out of the Holy Spirit on the Apostles at Pentecost in Acts 2, Peter refers to a prophecy in Joel. This prophecy said that the Lord would pour out His "spirit upon all flesh" (Joel 2:28). This pouring out of the spirit is not linked to salvation. How do I know that? Because the prophecy goes on to say "And it shall come to pass, that whosoever shall call on the name of the Lord shall be delivered" (Joel 2:32). Salvation would require action upon the part of the person in order to be saved.
In Acts 10, Peter says that the reception of the Holy Spirit by Cornelius was like the reception of the Holy Spirit that they had received. He was pointing back to Pentecost. If the outpouring of the Holy Spirit was not linked to salvation at Pentecost, then it was not linked to salvation in this instance either.