[1/7] webservices: Fix write option mapping in write_type_struct_field.

Hans Leidekker hans at codeweavers.com
Wed Jun 28 06:44:55 CDT 2017


Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 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
     {
-- 
2.1.4




More information about the wine-patches mailing list