Personally I prefer !pD3DDevice rather than comparison to NULL, but no big deal if you're really stuck on it.