d3dx9_36: Fix typos

Andrey Gusev andrey.goosev at gmail.com
Sat Mar 28 15:52:39 CDT 2015


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150328/4ca794e7/attachment.html>
-------------- next part --------------
From 29e50de67c8dfb1fec37c8b006ff57f17b65c68d Mon Sep 17 00:00:00 2001
Message-Id: <29e50de67c8dfb1fec37c8b006ff57f17b65c68d.1427575686.git.andrey.goosev at gmail.com>
From: Andrey Gusev <andrey.goosev at gmail.com>
Date: Sat, 28 Mar 2015 22:47:43 +0200
Subject: [PATCH] d3dx9_36: Fix typos

---
 dlls/d3dx9_36/mesh.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index b1a1a76..6e90596 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -3180,7 +3180,7 @@ static HRESULT parse_mesh(ID3DXFileData *filedata, struct mesh_data *mesh_data,
     ID3DXFileData *child = NULL;
     DWORD i;
     SIZE_T nb_children;
-    DWORD nb_skin_weigths_info = 0;
+    DWORD nb_skin_weights_info = 0;
 
     /*
      * template Mesh {
@@ -3310,14 +3310,14 @@ static HRESULT parse_mesh(ID3DXFileData *filedata, struct mesh_data *mesh_data,
                     goto end;
             } else if (IsEqualGUID(&type, &DXFILEOBJ_SkinWeights)) {
                 if (!mesh_data->skin_info) {
-                    WARN("Skin weigths found but skin mesh header not encountered yet\n");
+                    WARN("Skin weights found but skin mesh header not encountered yet\n");
                     hr = E_FAIL;
                     goto end;
                 }
-                hr = parse_skin_mesh_info(child, mesh_data, nb_skin_weigths_info);
+                hr = parse_skin_mesh_info(child, mesh_data, nb_skin_weights_info);
                 if (FAILED(hr))
                     goto end;
-                nb_skin_weigths_info++;
+                nb_skin_weights_info++;
             }
         }
         if (FAILED(hr))
@@ -3327,9 +3327,9 @@ static HRESULT parse_mesh(ID3DXFileData *filedata, struct mesh_data *mesh_data,
         child = NULL;
     }
 
-    if (mesh_data->skin_info && (nb_skin_weigths_info != mesh_data->nb_bones)) {
+    if (mesh_data->skin_info && (nb_skin_weights_info != mesh_data->nb_bones)) {
         WARN("Mismatch between nb skin weights info %u encountered and nb bones %u from skin mesh header\n",
-             nb_skin_weigths_info, mesh_data->nb_bones);
+             nb_skin_weights_info, mesh_data->nb_bones);
         hr = E_FAIL;
         goto end;
     }
-- 
2.1.0



More information about the wine-patches mailing list