Hans Leidekker : webservices: Fix write option mapping in write_type_struct_field.

Alexandre Julliard julliard at winehq.org
Thu Jun 29 15:23:24 CDT 2017


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Jun 29 09:21:59 2017 +0200

webservices: Fix write option mapping in write_type_struct_field.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/writer.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c
index 9c479b2..95ebd7c 100644
--- a/dlls/webservices/writer.c
+++ b/dlls/webservices/writer.c
@@ -2954,7 +2954,11 @@ static HRESULT write_type_struct_field( struct writer *writer, const WS_FIELD_DE
             if (field_options & WS_FIELD_POINTER) option = WS_WRITE_NILLABLE_POINTER;
             else option = WS_WRITE_NILLABLE_VALUE;
         }
-        else return E_INVALIDARG;
+        else
+        {
+            if (field_options & WS_FIELD_POINTER) option = WS_WRITE_REQUIRED_POINTER;
+            else option = WS_WRITE_REQUIRED_VALUE;
+        }
     }
     else
     {




More information about the wine-cvs mailing list