Weak-Lensing Determination of the Mass in Galaxy Halos