wined3d: Fix subtraction of resource size from used adapter memory.