diff --git a/src/d3d8/d3d8_device.cpp b/src/d3d8/d3d8_device.cpp index 6ead84792d9..61be21e1da9 100644 --- a/src/d3d8/d3d8_device.cpp +++ b/src/d3d8/d3d8_device.cpp @@ -105,7 +105,7 @@ namespace dxvk { if (DevInfoStructSize != sizeof(D3DDEVINFO_VCACHE)) return D3DERR_INVALIDCALL; - memset(pDevInfoStruct, 0, std::min(size_t(DevInfoStructSize), sizeof(D3DDEVINFO_VCACHE))); + memset(pDevInfoStruct, 0, sizeof(D3DDEVINFO_VCACHE)); return S_FALSE; }