The sample framework that came with the old DirectX SDK used to have a goto statement inside of the EnumerateDevices function. I've been looking at the updated code and it seems that the goto has since been removed.