Zhiyi Zhang (@zhiyi) commented about dlls/wintypes/tests/wintypes.c:
- HSTRING name;
- hr = RoInitialize( RO_INIT_MULTITHREADED );
- ok( SUCCEEDED( hr ), "got %#lx\n", hr );
- hr = WindowsCreateString( class_name, wcslen( class_name ), &name );
- ok( SUCCEEDED( hr ), "got %#lx\n", hr );
- hr = RoGetActivationFactory( name, &IID_IActivationFactory, (void **)&propset_factory );
- WindowsDeleteString( name );
- todo_wine ok( hr == S_OK || broken( hr == REGDB_E_CLASSNOTREG ),
"RoGetActivationFactory failed, hr %#lx.\n", hr );
- if (hr != S_OK)
- {
todo_wine win_skip( "%s runtimeclass not registered, skipping tests.\n",
wine_dbgstr_w( class_name ) );
RoUninitialize();
Let's add a done label and use `goto done;` when we need to quit.