d3dx9: Don't use strcasecmp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-04-08 14:30:47 +02:00 committed by Alexandre Julliard
parent 23b9b1ceb6
commit 5c5a8ae23f
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@
#include "d3dx9_private.h"
#include "d3dcompiler.h"
#include "winternl.h"
/* Constants for special INT/FLOAT conversation */
#define INT_FLOAT_MULTI 255.0f
@ -2024,7 +2025,7 @@ static D3DXHANDLE WINAPI d3dx_effect_GetParameterBySemantic(ID3DXEffect *iface,
continue;
}
if (!strcasecmp(temp_param->semantic, semantic))
if (!_strnicmp(temp_param->semantic, semantic, -1))
{
TRACE("Returning parameter %p\n", temp_param);
return get_parameter_handle(temp_param);
@ -2047,7 +2048,7 @@ static D3DXHANDLE WINAPI d3dx_effect_GetParameterBySemantic(ID3DXEffect *iface,
continue;
}
if (!strcasecmp(temp_param->semantic, semantic))
if (!_strnicmp(temp_param->semantic, semantic, -1))
{
TRACE("Returning parameter %p\n", temp_param);
return get_parameter_handle(temp_param);