Henri Verbeet : d3d10: Actually use the parse_fx10() return value.

Alexandre Julliard julliard at winehq.org
Tue Mar 3 11:53:43 CST 2009


Module: wine
Branch: master
Commit: 152c9637ac402acef194c85d3cd7111ed42699e1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=152c9637ac402acef194c85d3cd7111ed42699e1

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Mar  3 09:03:46 2009 +0100

d3d10: Actually use the parse_fx10() return value.

---

 dlls/d3d10/effect.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 61b4a6f..bb7f7a8 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -410,15 +410,12 @@ static HRESULT fx10_chunk_handler(const char *data, void *ctx)
     switch(tag)
     {
         case TAG_FX10:
-            parse_fx10(e, ptr, chunk_size);
-            break;
+            return parse_fx10(e, ptr, chunk_size);
 
         default:
             FIXME("Unhandled chunk %s\n", tag_str);
-            break;
+            return S_OK;
     }
-
-    return S_OK;
 }
 
 HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size)




More information about the wine-cvs mailing list