wined3d: Don't get rid of the user memory unless we're actually called with NULL...