Huw Davies : tools/widl: Fix behaviour when both lcid and retval arguments are present.

Alexandre Julliard julliard at winehq.org
Wed Jun 17 10:43:29 CDT 2009


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Jun 17 14:37:24 2009 +0100

tools/widl: Fix behaviour when both lcid and retval arguments are present.

---

 tools/widl/write_msft.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 7a709bc..5bbc95e 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -1515,15 +1515,15 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, var_t *func, int index)
 	paramdata[2] = paramflags;
 	typedata[3] += decoded_size << 16;
 
-        if(lcid_retval_count == 1)
-            typedata[4] |= 0x4000;
-        else if(lcid_retval_count == 2)
-            typedata[4] |= 0x8000;
-
         i++;
       }
     }
 
+    if(lcid_retval_count == 1)
+        typedata[4] |= 0x4000;
+    else if(lcid_retval_count == 2)
+        typedata[4] |= 0x8000;
+
     if(typeinfo->funcs_allocated == 0) {
         typeinfo->funcs_allocated = 10;
         typeinfo->func_indices = xmalloc(typeinfo->funcs_allocated * sizeof(int));




More information about the wine-cvs mailing list