Module: wine Branch: master Commit: 87553b009dbafe9202f1800caca1ba5346958f1f URL: https://source.winehq.org/git/wine.git/?a=commit;h=87553b009dbafe9202f1800ca...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Apr 8 14:31:03 2019 +0200
d3d11: Don't use strcasecmp.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/d3d11/inputlayout.c | 3 ++- dlls/d3d11/shader.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d11/inputlayout.c b/dlls/d3d11/inputlayout.c index 127ea29..de40eda 100644 --- a/dlls/d3d11/inputlayout.c +++ b/dlls/d3d11/inputlayout.c @@ -21,6 +21,7 @@ #include "wine/port.h"
#include "d3d11_private.h" +#include "winternl.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d11);
@@ -32,7 +33,7 @@ static struct wined3d_shader_signature_element *shader_find_signature_element(co
for (i = 0; i < s->element_count; ++i) { - if (!strcasecmp(e[i].semantic_name, semantic_name) && e[i].semantic_idx == semantic_idx + if (!_strnicmp(e[i].semantic_name, semantic_name, -1) && e[i].semantic_idx == semantic_idx && e[i].stream_idx == stream_idx) return &e[i]; } diff --git a/dlls/d3d11/shader.c b/dlls/d3d11/shader.c index 2276dd7..a506aac 100644 --- a/dlls/d3d11/shader.c +++ b/dlls/d3d11/shader.c @@ -21,6 +21,7 @@ #include "wine/port.h"
#include "d3d11_private.h" +#include "winternl.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d11);
@@ -1026,7 +1027,7 @@ static HRESULT validate_stream_output_entries(const D3D11_SO_DECLARATION_ENTRY * continue;
if (e1->Stream == e2->Stream - && !strcasecmp(e1->SemanticName, e2->SemanticName) + && !_strnicmp(e1->SemanticName, e2->SemanticName, -1) && e1->SemanticIndex == e2->SemanticIndex && e1->StartComponent < e2->StartComponent + e2->ComponentCount && e1->StartComponent + e1->ComponentCount > e2->StartComponent)