David Adam : wined3d: Fix a possible null dereference.