https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e4ffc986e58220df3375e76c3aed19c07fd98488

commit e4ffc986e58220df3375e76c3aed19c07fd98488
Author:     winesync <[email protected]>
AuthorDate: Mon Sep 21 22:50:20 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Thu Feb 4 16:37:03 2021 +0100

    [WINESYNC] d3dx9: Don't use strcasecmp.
    
    Signed-off-by: Piotr Caban <[email protected]>
    Signed-off-by: Matteo Bruni <[email protected]>
    Signed-off-by: Matteo Bruni <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 5c5a8ae23ff7fe9c103de4e3dfce06bf1b8778c1 by Piotr Caban 
<[email protected]>
---
 dll/directx/wine/d3dx9_36/effect.c  | 5 +++--
 dll/directx/wine/d3dx9_36/precomp.h | 2 ++
 sdk/tools/winesync/d3dx9.cfg        | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dll/directx/wine/d3dx9_36/effect.c 
b/dll/directx/wine/d3dx9_36/effect.c
index 52908a274f1..915a9779b61 100644
--- a/dll/directx/wine/d3dx9_36/effect.c
+++ b/dll/directx/wine/d3dx9_36/effect.c
@@ -28,6 +28,7 @@
 
 #include "d3dx9_private.h"
 #include "d3dcompiler.h"
+#include "winternl.h"
 #endif /* __REACTOS__ */
 
 /* Constants for special INT/FLOAT conversation */
@@ -2028,7 +2029,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);
@@ -2051,7 +2052,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);
diff --git a/dll/directx/wine/d3dx9_36/precomp.h 
b/dll/directx/wine/d3dx9_36/precomp.h
index 543f90b6163..d0673e03b2b 100644
--- a/dll/directx/wine/d3dx9_36/precomp.h
+++ b/dll/directx/wine/d3dx9_36/precomp.h
@@ -21,6 +21,8 @@
 #include <wingdi.h>
 #include <winuser.h>
 
+#include <wine/winternl.h>
+
 #include <wine/list.h>
 #include <wine/unicode.h>
 
diff --git a/sdk/tools/winesync/d3dx9.cfg b/sdk/tools/winesync/d3dx9.cfg
index c4c1db7ed0f..c1ab0d829aa 100644
--- a/sdk/tools/winesync/d3dx9.cfg
+++ b/sdk/tools/winesync/d3dx9.cfg
@@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, 
include/d3dx9anim.h: sdk/inc
   include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: 
sdk/include/dxsdk/d3dx9of.h,
   include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, 
include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
   include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: 
sdk/include/dxsdk/d3dx9xof.h}
-tags: {wine: 8bed853c4380ebf86220ffe2fd89d48d98a90921}
+tags: {wine: 5c5a8ae23ff7fe9c103de4e3dfce06bf1b8778c1}

Reply via email to