Photometric reddenings of stars in emission nebulae of the Magellanic Clouds