wined3d: Properly allocate heap memory for volumes.