d3drm: Use sizeof instead of strlen in d3drm_texture3_GetClassName.

Signed-off-by: Aaryaman Vasishta <jem456.vasishta@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aaryaman Vasishta 2016-04-24 21:20:19 +05:30 committed by Alexandre Julliard
parent 2738f7690d
commit 93c2196189

View file

@ -796,7 +796,7 @@ static HRESULT WINAPI d3drm_texture3_GetClassName(IDirect3DRMTexture3 *iface, DW
{
TRACE("iface %p, size %p, name %p.\n", iface, size, name);
if (!size || *size < strlen("Texture") || !name)
if (!size || *size < sizeof("Texture") || !name)
return E_INVALIDARG;
strcpy(name, "Texture");