webservices: Fix write option mapping in write_type_struct_field.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-06-29 09:21:59 +02:00 committed by Alexandre Julliard
parent 39b841d189
commit 2f2a23a9bd
1 changed files with 5 additions and 1 deletions

View File

@ -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; if (field_options & WS_FIELD_POINTER) option = WS_WRITE_NILLABLE_POINTER;
else option = WS_WRITE_NILLABLE_VALUE; 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 else
{ {