Module: wine Branch: master Commit: 3d94c1ac4d1dc4487645dedd6b6fea800ad49d64 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d94c1ac4d1dc4487645dedd6b...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Jul 11 00:13:30 2016 +0300
webservices/tests: Fix WsReadValue type argument values (Clang).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/webservices/tests/reader.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/webservices/tests/reader.c b/dlls/webservices/tests/reader.c index 77f7964..e57fc0c 100644 --- a/dlls/webservices/tests/reader.c +++ b/dlls/webservices/tests/reader.c @@ -3351,23 +3351,23 @@ static void test_WsReadValue(void) ok( hr == S_OK, "got %08x\n", hr );
prepare_struct_type_test( reader, "<t>1</t>" ); - hr = WsReadValue( NULL, WS_UINT32_TYPE, &val, sizeof(val), NULL ); + hr = WsReadValue( NULL, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL ); ok( hr == E_INVALIDARG, "got %08x\n", hr );
prepare_struct_type_test( reader, "<t>1</t>" ); - hr = WsReadValue( reader, WS_UINT32_TYPE, NULL, sizeof(val), NULL ); + hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, NULL, sizeof(val), NULL ); ok( hr == E_INVALIDARG, "got %08x\n", hr );
/* reader must be positioned correctly */ prepare_struct_type_test( reader, "<t>1</t>" ); - hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL ); + hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL ); ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
prepare_struct_type_test( reader, "<t>1</t>" ); hr = WsReadToStartElement( reader, NULL, NULL, NULL, NULL ); ok( hr == S_OK, "got %08x\n", hr );
- hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL ); + hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL ); ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
prepare_struct_type_test( reader, "<t>1</t>" ); @@ -3378,7 +3378,7 @@ static void test_WsReadValue(void) ok( hr == S_OK, "got %08x\n", hr );
val = 0xdeadbeef; - hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL ); + hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL ); ok( hr == S_OK, "got %08x\n", hr ); ok( val == 1, "got %u\n", val );
@@ -3386,7 +3386,7 @@ static void test_WsReadValue(void) hr = WsReadToStartElement( reader, NULL, NULL, NULL, NULL ); ok( hr == S_OK, "got %08x\n", hr );
- hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL ); + hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL ); ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
WsFreeReader( reader );