You've already ruined any photo where the film wasn't wound into the canister. Just open it back up, get it out and wind it into the canister by hand and you've done all you can. IF you feel that you didn't ruin the film, do it in total darkness.
Then if the camera uses batteries, you might want to check that they're good before you load more film, and try it on a roll you can throw away first.