Roderick Colenbrander : wined3d: Move the memory code of LockRect to the end of the function.