Marcus Meissner : d3d9: Check that surface is allocated (Coverity).