You can't.
flight puts some very strong constraints on a limb, constraints that just are not comparable with good running. It is like asking for a car that works competitively as both a long haul heavy dump truck and as a formula one race car, there is just no way to mix the two successfully.
A flight limbs needs to be able to complete a flight stroke which is a very different motion than running. meaning your limb needs two drastically different and strong sets of muscles to work the same limb and there just is not enough room to attach all those muscles to the same bones. To top it off the muscles will end up working against each other making both sets weaker. Worse even if you did manage to attach them all all that attachment will make the limb so inflexible that is becomes useless for both jobs.
A great deal of a flying vertebrates mass is concentrated in a wing, it needs to be both large and strong to generate sufficient lift. This concentration of mass is the exact opposite of what you want in a running limb. In a running limb as little of the creatures mass should be in the limb as possible, to make moving the limb faster and less costly. Worse wings need to have as large a surface area as possible to generate lift while a running limb needs to have as little surface area as possible to reduce drag. even if you some how twisted the limb into the lowest drag orientation it will be subjected to strong lateral forces from drag on the wing surface, which is the single biggest thing you don't want on a running limb.
All the animals that can fly and run are birds that use different isolated limbs for each activity (the front limbs for flight the hind limbs for running), this is why birds evolve ground running multiple times and bats and pterosaurs never have, because birds are the only group of flying vertebrates that have a set of limbs not involved in flight.