ddraw: Add some NULL pointer tests.