Commit 3d94c1ac authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

webservices/tests: Fix WsReadValue type argument values (Clang).

parent 5eff8517
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment